Commit 0df3e9b2 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20140144: Job [Deploy_CHM_DEMO_10] configuration updated

Change performed by ·¨¼y°ó
parent 40191fa3
......@@ -109,11 +109,21 @@ sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${ve
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>systemctl stop CRM
rm -f /opt/CRM/CRM.jar
mv target/CRM-*-exec.jar /opt/CRM/CRM.jar
chmod +x /opt/CRM/CRM.jar
systemctl start CRM</command>
<command>sudo systemctl stop CRM
chm=/opt/CRM/
tempdir=$(mktemp -d)
sudo rm -f ${chm}/lib/*
sudo rm -rf ${chm}/templates/*
7za x target/CRM-pack.zip -o&quot;${tempdir}&quot;
sudo mv -f ${tempdir}/CRM/lib/* &quot;${chm}/lib&quot;
sudo mv -f ${tempdir}/CRM/templates/* &quot;${chm}/templates&quot;
rm -rf &quot;${tempdir}&quot;
sudo systemctl start CRM</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult>
......
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