Explorar o código

更新 'Jenkinsfile'

sifu-gogs %!s(int64=2) %!d(string=hai) anos
pai
achega
2255fabcb4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Jenkinsfile

+ 3 - 1
Jenkinsfile

@@ -11,13 +11,15 @@ pipeline {
                 }
             }
             steps {
+                node {
                 /* checkout scm */
                 /* echo docker -v  */
-                def customImage = docker.build("${BRANCH_NAME}:${BUILD_NUMBER}")
+                    def customImage = docker.build("${BRANCH_NAME}:${BUILD_NUMBER}")
                 /* sh 'docker-compose down' */
                 /* sh 'npm install --registry https://registry.npm.taobao.org' */
                 /* sh 'npm run build:prod' */
                 /* sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .' */
+                }
             }
         }
         stage('Test') {