Explorar o código

更新 'Jenkinsfile'

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

+ 2 - 4
Jenkinsfile

@@ -8,10 +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 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} .'
             }