diff --git a/jobs/Hi365_SIT_API_Deploy/config.xml b/jobs/Hi365_SIT_API_Deploy/config.xml index 0cde3a24edb45751270a9a29ba8d71b4cf281917..ebfee566489b14f898885a8245b557657cf658ef 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"