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

20140144: Job [Deploy_CHM_UAT_133] configuration updated

Change performed by ·¨¼y°ó
parent eacf6734
...@@ -112,9 +112,19 @@ sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${ve ...@@ -112,9 +112,19 @@ sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${ve
<postbuilders> <postbuilders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>sudo systemctl stop CRM <command>sudo systemctl stop CRM
sudo rm -f /opt/CRM/lib/*
sudo 7za e target/CRM-pack.zip -o/opt/CRM/lib/ CRM/lib/*.* -r -y chm=/opt/CRM/
sudo 7za e target/CRM-pack.zip -o/opt/CRM/templates/ CRM/templates/*.* -r -y 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> sudo systemctl start CRM</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