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') {
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
'''
}
}