提交jenkins自动化流水线

This commit is contained in:
Home
2026-03-28 21:51:19 +08:00
parent 9de3e2c658
commit 7b87714987
Vendored
+8 -1
View File
@@ -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}"
}
}