From 1e9e6da6bffceb9e90551b8875df458d05659c0d Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 21 Oct 2019 11:35:32 +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 | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/jobs/Hi365_SIT_API_Deploy/config.xml b/jobs/Hi365_SIT_API_Deploy/config.xml index 0cde3a24..ebfee566 100644 --- a/jobs/Hi365_SIT_API_Deploy/config.xml +++ b/jobs/Hi365_SIT_API_Deploy/config.xml @@ -59,21 +59,9 @@ false - systemctl stop CRM + export GOOGLE_APPLICATION_CREDENTIALS="/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/hi365-b2622.json" - -chm=/opt/CRM/ -tempdir=$(mktemp -d) - -rm -f ${chm}/lib/* -rm -rf ${chm}/templates/* - -7za x target/CRM-pack.zip -o"${tempdir}" -mv -f ${tempdir}/CRM/lib/* "${chm}/lib" -mv -f ${tempdir}/CRM/templates/* "${chm}/templates" -rm -rf "${tempdir}" - -systemctl start CRM +java -jar "/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/build/libs/hi365-0.0.1-SNAPSHOT.jar" -- 2.26.2