add Jenkinsfile

This commit is contained in:
2025-07-16 11:03:16 +08:00
parent 11f6ab464b
commit 9e24920a65

6
Jenkinsfile vendored
View File

@ -19,9 +19,9 @@ pipeline {
stage('Install & Build') { stage('Install & Build') {
steps { steps {
sh ''' sh '''
sudo -u jenkins -i echo "当前用户: $(whoami)"
cd /var/lib/jenkins/workspace/alex-ui-mp_master echo "当前目录: $(pwd)"
rm -rf dist rm -rf dist
npm install --legacy-peer-deps npm install --legacy-peer-deps
npx vue-cli-service build npx vue-cli-service build
''' '''