add Jenkinsfile

This commit is contained in:
2025-07-16 10:47:31 +08:00
parent 2db470d936
commit 3b9ddaed06

10
Jenkinsfile vendored
View File

@ -19,13 +19,9 @@ pipeline {
stage('Install & Build') { stage('Install & Build') {
steps { steps {
sh ''' sh '''
echo "当前用户: $(whoami)" rm -rf dist
echo "当前目录: $(pwd)" npm install --legacy-peer-deps
node -v npx vue-cli-service build
npm -v
echo "PATH=$PATH"
ls -l ./node_modules/.bin/
file ./node_modules/.bin/vue-cli-service || echo "vue-cli-service 不存在或不可执行"
''' '''
} }
} }