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