Commit 1e9e6da6 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20180082: Job [Hi365_SIT_API_Deploy] configuration updated

Change performed by ³¯¾_¶§
parent c000aafc
...@@ -59,21 +59,9 @@ ...@@ -59,21 +59,9 @@
<passAllAsProjectProperties>false</passAllAsProjectProperties> <passAllAsProjectProperties>false</passAllAsProjectProperties>
</hudson.plugins.gradle.Gradle> </hudson.plugins.gradle.Gradle>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>systemctl stop CRM <command>export GOOGLE_APPLICATION_CREDENTIALS=&quot;/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/hi365-b2622.json&quot;
java -jar &quot;/var/lib/jenkins/workspace/Hi365_SIT_API_Deploy/build/libs/hi365-0.0.1-SNAPSHOT.jar&quot;</command>
chm=/opt/CRM/
tempdir=$(mktemp -d)
rm -f ${chm}/lib/*
rm -rf ${chm}/templates/*
7za x target/CRM-pack.zip -o&quot;${tempdir}&quot;
mv -f ${tempdir}/CRM/lib/* &quot;${chm}/lib&quot;
mv -f ${tempdir}/CRM/templates/* &quot;${chm}/templates&quot;
rm -rf &quot;${tempdir}&quot;
systemctl start CRM</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
<publishers/> <publishers/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment