Jenkinsfile 624 B

123456789101112131415161718192021222324252627
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('build') {
  5. steps {
  6. sh '''
  7. cd /home/administrador/Documentos/GIT/Inversys/app/frontend/
  8. git pull
  9. '''
  10. }
  11. }
  12. stage('Test') {
  13. steps {
  14. echo 'Testing..'
  15. }
  16. }
  17. stage('Deploy') {
  18. steps {
  19. sh '''
  20. cd /home/administrador/Documentos/GIT/Inversys/
  21. echo $USER
  22. docker-compose up -d --build frontend
  23. '''
  24. }
  25. }
  26. }
  27. }