add Jenkinsfile

This commit is contained in:
2025-07-16 10:29:01 +08:00
parent 87c0011706
commit 2db470d936

11
Jenkinsfile vendored
View File

@ -19,10 +19,13 @@ pipeline {
stage('Install & Build') { stage('Install & Build') {
steps { steps {
sh ''' sh '''
echo "当前目录: $(pwd)" echo "当前用户: $(whoami)"
rm -rf dist echo "当前目录: $(pwd)"
npm install --legacy-peer-deps node -v
./node_modules/.bin/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 不存在或不可执行"
''' '''
} }
} }