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
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>systemctl stop CHMB
rm -f /opt/CHMB/CHMB.jar
mv target/CHMB-*-exec.jar /opt/CHMB/CHMB.jar
chmod +x /opt/CHMB/CHMB.jar
systemctl start CHMB</command>
<command>sudo systemctl stop CHMB
chmb=/opt/CHMB
tempdir=$(mktemp -d)
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>
</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