修改Jenkins打包部署

This commit is contained in:
program-walker 2020-09-28 17:54:54 +08:00
parent 82c2502cc6
commit 2f051be6e9

View File

@ -4,7 +4,7 @@ pipeline {
label 'master' label 'master'
} }
} }
stages { stages {
stage('Package') { stage('Package') {
tools { tools {
@ -17,7 +17,9 @@ pipeline {
} }
stage('Publish') { stage('Publish') {
steps { steps {
sh 'cp -rf ./dist/* /usr/local/joylink/jlclient' sh 'mkdir -p /usr/local/joylink/jlclient'
sh 'rm -rf /usr/local/joylink/jlclient/*'
sh 'cp -rf ./dist/* /usr/local/joylink/jlclient'
} }
} }
} }