Francisco huezo 5 роки тому
батько
коміт
b6171cbe4d
1 змінених файлів з 27 додано та 0 видалено
  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
+                    '''
+            }
+        }
+    }
+}