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