Browse Source

更新 'Jenkinsfile'

sifu-gogs 2 năm trước cách đây
mục cha
commit
2255fabcb4
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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') {