ソースを参照

更新 'Jenkinsfile'

sifu-gogs 2 年 前
コミット
1ec5b931b4
1 ファイル変更2 行追加4 行削除
  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} .'
             }