From 164072f996f03a738178e09c212c57c3b0b0b13f Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 21 Oct 2019 13:38:22 +0800 Subject: [PATCH] 20180082: Job [Hi365_SIT_API_Deploy] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¯¾_¶§ --- jobs/Hi365_SIT_API_Deploy/config.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jobs/Hi365_SIT_API_Deploy/config.xml b/jobs/Hi365_SIT_API_Deploy/config.xml index f17892f7..24310269 100644 --- a/jobs/Hi365_SIT_API_Deploy/config.xml +++ b/jobs/Hi365_SIT_API_Deploy/config.xml @@ -61,7 +61,10 @@ export GOOGLE_APPLICATION_CREDENTIALS="/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/hi365-b2622.json" -java -jar "/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/build/libs/hi365-0.0.1-SNAPSHOT.jar" & +sudo systemctl stop Hi365Resource +sudo rm -f /opt/Hi365ResourceServer/lib/*.jar +sudo cp -a build/libs/* /opt/Hi365ResourceServer/lib +sudo systemctl start Hi365Resource -- 2.26.2