浏览代码

Merge branch 'wheng'

wuheng 1 年之前
父节点
当前提交
fd5c5bcbed
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Jenkinsfile

+ 4 - 4
Jenkinsfile

@@ -6,10 +6,10 @@ pipeline {
     stages {
     stages {
         stage('Build') {
         stage('Build') {
             steps {
             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} .'
                 sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
             }
             }