wuheng 1 жил өмнө
parent
commit
f88e809f62
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      Jenkinsfile

+ 3 - 3
Jenkinsfile

@@ -13,9 +13,9 @@ pipeline {
         stage('Build') {
             steps {
                 echo 'Building..'
-                sh 'docker-compose down'
+                #sh 'docker-compose down'
                 sh '~/tools/apache-maven-3.6.3/bin/mvn  clean install -Dmaven.test.skip=true'
-                sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
+                #sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
             }
         }
         stage('Test') {
@@ -26,7 +26,7 @@ pipeline {
         stage('Deploy') {
             steps {
                 echo 'Deploying....'
-                sh 'docker-compose up -d'
+                sh 'docker ps'
             }
         }
     }