提交jenkins自动化流水线
This commit is contained in:
Vendored
+8
-1
@@ -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}"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user