sifu-gogs 2 жил өмнө
parent
commit
0865b2785a
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      Jenkinsfile

+ 2 - 3
Jenkinsfile

@@ -10,10 +10,9 @@ pipeline {
         stage('Build') {
             steps {
                 echo 'Building..'
-                sh 'docker-compose stop'
-                sh 'docker-compose rm -sf'
+                sh 'docker-compose down'
                 sh '~/tools/apache-maven-3.6.3/bin/mvn  clean install -Dmaven.test.skip=true'
-                sh 'docker build -t red:0.1 .'
+                sh 'docker build -t red:${BUILD_NUMBER} .'
             }
         }
         stage('Test') {