Explorar el Código

更新 'Jenkinsfile'

sifu-gogs hace 2 años
padre
commit
620281f854
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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' */