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

20140144: Job [Deploy_CHMB_SIT_131] configuration updated

Change performed by ·¨¼y°ó
parent 14ffed70
...@@ -141,10 +141,18 @@ sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}&lt ...@@ -141,10 +141,18 @@ sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}&lt
<postbuilders> <postbuilders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>sudo systemctl stop CHMB <command>sudo systemctl stop CHMB
sudo rm -f /opt/CHMB/lib/*
7za e target/CHMB-pack.zip -o/opt/CHMB/lib/ CHMB/lib/*.* -r -y chmb=/opt/CHMB
7za e target/CHMB-pack.zip -o/opt/CHMB/template/ CHMB/template/*.* -r -y tempdir=$(mktemp -d)
7za e target/CHMB-pack.zip -o/opt/CHMB/sample/ CHMB/sample/*.* -r -y 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> sudo systemctl start CHMB</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</postbuilders> </postbuilders>
......
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