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