diff --git a/Jenkinsfile b/Jenkinsfile index eb2db15f..4aac649a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,13 @@ pipeline { rm -rf android/simpleDemo/build/ ''' } + } + stage('修复npm环境') { + steps { + sh ''' + npm config set prefix $WORKSPACE/.npm-global + ''' + } } stage('安装依赖') { steps { @@ -29,7 +36,7 @@ pipeline { } stage('打包uniapp') { steps { - sh 'npm run build:app-plus:${env.BRANCH_NAME}' + sh "npm run build:app-plus:${env.BRANCH_NAME}" } }