add Jenkinsfile
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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 不存在或不可执行"
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user