add Jenkinsfile

This commit is contained in:
2025-07-16 13:54:17 +08:00
parent 5ae528a2c2
commit 29af8f10e1

8
Jenkinsfile vendored
View File

@ -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
''' '''
} }
} }