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

scott: Job [Deploy_DHP_CHMB_Prod] configuration updated

Change performed by ·¨¼y°ó
parent e2664ed2
......@@ -15,7 +15,7 @@
master
release/1.15GA
hotfix/1.15.1GA</description>
<defaultValue>feature/I18N</defaultValue>
<defaultValue>DHP</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
......@@ -121,14 +121,14 @@ hotfix/1.15.1GA</description>
<hudson.tasks.Shell>
<command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;)
version=${GIT_BRANCH##*/}
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/CHMB\/\&quot; version=\&quot;%version%_%VAR%\&quot;\/&gt;/&quot; src/main/resources/static/index.html
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/CHMB\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/index.html
</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>ssh -i dih ec2-user@3.16.159.120 &quot;rm -f /opt/chm/CHMB-pack.zip&quot;
scp -i dih target/CHMB-pack.zip ec2-user@3.16.159.120:/opt/chm/</command>
<command>ssh -i /root/.ssh/id_rsa ec2-user@18.224.85.13 &quot;rm -f CHMB-pack.zip&quot;
scp -i /root/.ssh/id_rsa target/CHMB-pack.zip ec2-user@18.224.85.13:~/</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