Browse Source

Merge branch 'wheng'

wuheng 1 year ago
parent
commit
fd5c5bcbed
1 changed files with 4 additions and 4 deletions
  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} .'
             }