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

scott: Job [Deploy_DHP_HRB_Prod] configuration updated

Change performed by ·¨¼y°ó
parent 0b66b125
...@@ -18,6 +18,12 @@ hotfix/1.15.1GA</description> ...@@ -18,6 +18,12 @@ hotfix/1.15.1GA</description>
<defaultValue>DHP</defaultValue> <defaultValue>DHP</defaultValue>
<trim>false</trim> <trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition> </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
<name>AWS_HRB_AP</name>
<description></description>
<defaultValue>3.16.159.120</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions> </parameterDefinitions>
</hudson.model.ParametersDefinitionProperty> </hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty> <jenkins.model.BuildDiscarderProperty>
...@@ -46,7 +52,7 @@ hotfix/1.15.1GA</description> ...@@ -46,7 +52,7 @@ hotfix/1.15.1GA</description>
<submoduleCfg class="list"/> <submoduleCfg class="list"/>
<extensions/> <extensions/>
</scm> </scm>
<assignedNode>HCC_Proxy</assignedNode> <assignedNode>AWS_BUILD_Machine</assignedNode>
<canRoam>false</canRoam> <canRoam>false</canRoam>
<disabled>false</disabled> <disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
...@@ -76,8 +82,7 @@ hotfix/1.15.1GA</description> ...@@ -76,8 +82,7 @@ hotfix/1.15.1GA</description>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/> <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
<reporters/> <reporters/>
<publishers> <publishers>
<jenkins.plugins.slack.SlackNotifier plugin="slack@2.9"> <jenkins.plugins.slack.SlackNotifier plugin="slack@2.12">
<baseUrl></baseUrl>
<teamDomain></teamDomain> <teamDomain></teamDomain>
<tokenCredentialId></tokenCredentialId> <tokenCredentialId></tokenCredentialId>
<botUser>false</botUser> <botUser>false</botUser>
...@@ -95,6 +100,12 @@ hotfix/1.15.1GA</description> ...@@ -95,6 +100,12 @@ hotfix/1.15.1GA</description>
<includeFailedTests>false</includeFailedTests> <includeFailedTests>false</includeFailedTests>
<commitInfoChoice>NONE</commitInfoChoice> <commitInfoChoice>NONE</commitInfoChoice>
<includeCustomMessage>false</includeCustomMessage> <includeCustomMessage>false</includeCustomMessage>
<customMessage></customMessage>
<customMessageSuccess></customMessageSuccess>
<customMessageAborted></customMessageAborted>
<customMessageNotBuilt></customMessageNotBuilt>
<customMessageUnstable></customMessageUnstable>
<customMessageFailure></customMessageFailure>
</jenkins.plugins.slack.SlackNotifier> </jenkins.plugins.slack.SlackNotifier>
</publishers> </publishers>
<buildWrappers> <buildWrappers>
...@@ -113,15 +124,21 @@ hotfix/1.15.1GA</description> ...@@ -113,15 +124,21 @@ hotfix/1.15.1GA</description>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;) <command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;)
version=${GIT_BRANCH##*/} version=${GIT_BRANCH##*/}
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/index.html sed -i &quot;&quot; &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/index.html
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/login.html sed -i &quot;&quot; &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/login.html
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</prebuilders> </prebuilders>
<postbuilders> <postbuilders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>ssh -i /root/.ssh/id_rsa ec2-user@3.16.159.120 &quot;rm -f HRB-pack.zip&quot; <command>PROD_FILE=HRB-pack.zip
scp -i /root/.ssh/id_rsa target/HRB-pack.zip ec2-user@3.16.159.120:~/</command> 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; ${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> </hudson.tasks.Shell>
</postbuilders> </postbuilders>
<runPostStepsIfResult> <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