Commit 3d9a79fa authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20140144: Job [Deploy_CHMB_DEMO_10] configuration updated

Change performed by ·¨¼y°ó
parent f6aa1981
...@@ -119,11 +119,20 @@ sed -i "s/<title.*/<title>CHM Booking Manage v%VAR%<\/title\/&g ...@@ -119,11 +119,20 @@ sed -i "s/<title.*/<title>CHM Booking Manage v%VAR%<\/title\/&g
</prebuilders> </prebuilders>
<postbuilders> <postbuilders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>systemctl stop CHMB <command>sudo systemctl stop CHMB
rm -f /opt/CHMB/CHMB.jar
mv target/CHMB-*-exec.jar /opt/CHMB/CHMB.jar chmb=/opt/CHMB
chmod +x /opt/CHMB/CHMB.jar tempdir=$(mktemp -d)
systemctl start CHMB</command> 7za x target/CHMB-pack.zip -o&quot;${tempdir}&quot;
rm -rf ${chmb}/lib/*
rm -rf ${chmb}/sample/*
rm -rf ${chmb}/template/*
mv -f ${tempdir}/CHMB/lib/* &quot;${chmb}/lib&quot;
mv -f ${tempdir}/CHMB/sample/* &quot;${chmb}/sample&quot;
mv -f ${tempdir}/CHMB/template/* &quot;${chmb}/template&quot;
rm -rf &quot;${tempdir}&quot;
sudo systemctl start CHMB</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</postbuilders> </postbuilders>
<runPostStepsIfResult> <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