wuheng 1 year ago
parent
commit
d85b8f7cc8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -7,8 +7,9 @@ pipeline {
         stage('Build') {
             steps {
                 nodejs('20.6.0') {
-                    sh 'npm install --registry https://registry.npm.taobao.org'
-                    sh 'npm run build:dev'
+										sh 'npm install -g yarn --registry https://registry.npm.taobao.org'
+                    sh 'yarn install --registry https://registry.npm.taobao.org'
+                    sh 'yarn run build:dev'
                 }
                 sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
             }