add Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -19,11 +19,11 @@ pipeline {
|
||||
stage('Install & Build') {
|
||||
steps {
|
||||
sh '''
|
||||
echo "当前用户: $(whoami)"
|
||||
echo "当前目录: $(pwd)"
|
||||
rm -rf dist
|
||||
rm -rf node_modules package-lock.json dist
|
||||
npm cache clean --force
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
npm install --legacy-peer-deps
|
||||
node node_modules/@vue/cli-service/bin/vue-cli-service.js build
|
||||
npx vue-cli-service build
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user