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

+ 3 - 1
Jenkinsfile

@@ -13,7 +13,9 @@ pipeline {
             steps {
                 /* checkout scm */
                 /* echo docker -v  */
-                docker.build("${BRANCH_NAME}:${BUILD_NUMBER}")
+                script {
+                    docker.build("${BRANCH_NAME}:${BUILD_NUMBER}")
+                }
                 /* sh 'docker-compose down' */
                 /* sh 'npm install --registry https://registry.npm.taobao.org' */
                 /* sh 'npm run build:prod' */