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

20160017: Job [Deploy_AWS_Presale_HRB_oAuth_Resource_Prod] configuration

updated

Change performed by ÁªþÈ
parent 8916b1b7
......@@ -15,6 +15,16 @@
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.12">
<gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
<name>AWS_HRB_PRESALE_AP</name>
<description></description>
<defaultValue>13.115.232.200</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.10.0">
<configVersion>2</configVersion>
......@@ -110,12 +120,13 @@ version=$(echo $GIT_BRANCH | cut -d&apos;/&apos; -f 3)
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>systemctl stop HRBResource
<command>PROD_FILE=HRB-pack.zip
KEY_FILE=../../jenkins
TARGET_HOST=jenkins@${AWS_HRB_PRESALE_AP}
SSH_PROXY=&quot;ProxyCommand ssh -i ${KEY_FILE} proxy@10.57.117.130 nc %h %p&quot;
rm -f /opt/HRBResourceServer/lib/*.jar
/usr/bin/unzip -j -o target/resource_server-pack.zip &quot;resource_server/lib/*&quot; -d /opt/HRBResourceServer/lib
systemctl start HRBResource</command>
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>
<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