Parcourir la source

更新 'Jenkinsfile'

sifu-gogs il y a 2 ans
Parent
commit
f65c62c9b8
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      Jenkinsfile

+ 2 - 5
Jenkinsfile

@@ -8,11 +8,8 @@ pipeline {
             steps {
 				sh 'docker-compose down'
                 nodejs('16.19.0') {
-                    sh 'npm install yarn -g --registry https://registry.npm.taobao.org'
-                    sh 'yarn config set registry https://registry.npm.taobao.org/'
-                    sh 'yarn install'
-                    sh 'yarn add async-validator@1.11.5'
-                    sh 'yarn run build:prod'
+                    sh 'npm install --registry https://registry.npm.taobao.org'
+                    sh 'npm run build:prod'
                 }
                 sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
             }