Ver código fonte

Merge branch 'feature-CI_CD' of https://git.grupomerelec.com/onunez/frontend-inversiones into feature-CI_CD

Oscar José Nuñez Chávez 5 anos atrás
pai
commit
40238b555d
1 arquivos alterados com 27 adições e 0 exclusões
  1. 27 0
      Jenkinsfile

+ 27 - 0
Jenkinsfile

@@ -0,0 +1,27 @@
+pipeline {
+    agent any
+    stages {
+        stage('build') {
+            steps {
+                sh  '''
+                    cd /home/administrador/Documentos/GIT/Inversys/app/frontend/
+				    git pull
+                    '''
+            }
+        }
+        stage('Test') {
+            steps {
+                echo 'Testing..'
+            }
+        }
+        stage('Deploy') {
+            steps {
+                sh  '''
+                    cd /home/administrador/Documentos/GIT/Inversys/
+                    echo $USER
+				    docker-compose up -d --build frontend
+                    '''
+            }
+        }
+    }
+}