add Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -19,11 +19,11 @@ pipeline {
|
|||||||
stage('Install & Build') {
|
stage('Install & Build') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
echo "当前用户: $(whoami)"
|
rm -rf node_modules package-lock.json dist
|
||||||
echo "当前目录: $(pwd)"
|
npm cache clean --force
|
||||||
rm -rf dist
|
npm config set registry https://registry.npmmirror.com
|
||||||
npm install --legacy-peer-deps
|
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