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

scott: Job [Deploy_DHP_Form_Prod] configuration updated

Change performed by ·¨¼y°ó
parent 1772250c
......@@ -128,11 +128,13 @@ sed -i "" "s/<title.*/<title>Form v${version}_${VAR}<
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>KEY_FILE-../../jenkins
<command>PROD_FILE=designer.war
KEY_FILE=../../jenkins
TARGET_HOST=jenkins@${AWS_CHM_AP}
SSH_PROXY=&quot;ProxyCommand ssh -i ${KEY_FILE} proxy@10.57.117.130 nc %h %p&quot;
ssh -i ${KEY_FILE} -o &quot;${SSH_PROXY}&quot; jenkins@${AWS_CHM_AP} &quot;rm -f designer.war&quot;
scp -i ${KEY_FILE} -o &quot;${SSH_PROXY}&quot; target/designer.war jenkins@${AWS_CHM_AP}:~/
ssh -i ${KEY_FILE} -o &quot;${SSH_PROXY}&quot; ${TARGET_HOST} &quot;rm -f ${PROD_FILE}&quot;
scp -i ${KEY_FILE} -o &quot;${SSH_PROXY}&quot; target/${PROD_FILE} ${TARGET_HOST}:~/
</command>
</hudson.tasks.Shell>
</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