瀏覽代碼

Merge branch 'wheng'

wuheng 1 年之前
父節點
當前提交
fd5c5bcbed
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Jenkinsfile

+ 4 - 4
Jenkinsfile

@@ -6,10 +6,10 @@ pipeline {
     stages {
         stage('Build') {
             steps {
-                sh 'docker-compose down'
-                nodejs('16.19.0') {
-                    sh 'npm install --registry https://registry.npm.taobao.org'
-                    sh 'npm run build:dev'
+                nodejs('20.6.0') {
+										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} .'
             }