From 2f051be6e9580f48af7359ec80a0dc4b26dab7d6 Mon Sep 17 00:00:00 2001 From: program-walker <418875866@qq.com> Date: Mon, 28 Sep 2020 17:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Jenkins=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile-test b/Jenkinsfile-test index 694bc472a..7961d5f98 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -4,7 +4,7 @@ pipeline { label 'master' } } - + stages { stage('Package') { tools { @@ -17,7 +17,9 @@ pipeline { } stage('Publish') { 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' } } }