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

20160017: Job [Deploy_HRB_oAuth_PRESALE_AWS] configuration updated

Change performed by ÁªþÈ
parent 6e2f38ae
...@@ -7,6 +7,26 @@ ...@@ -7,6 +7,26 @@
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.12"> <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.12">
<gitLabConnection>ylhealth</gitLabConnection> <gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
<name>GIT_BRANCH</name>
<description>
master
release/1.15GA
hotfix/1.15.1GA
feature/HEALTHERA-77</description>
<defaultValue>expert_develop</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
<name>AWS_PRESALE_HRB_oAuth</name>
<description></description>
<defaultValue>13.115.232.200</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty> <jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator"> <strategy class="hudson.tasks.LogRotator">
<daysToKeep>1</daysToKeep> <daysToKeep>1</daysToKeep>
...@@ -33,16 +53,12 @@ ...@@ -33,16 +53,12 @@
<submoduleCfg class="list"/> <submoduleCfg class="list"/>
<extensions/> <extensions/>
</scm> </scm>
<assignedNode>PRESALEt_172.16.40.163</assignedNode> <assignedNode>AWS_BUILD_Machine</assignedNode>
<canRoam>false</canRoam> <canRoam>false</canRoam>
<disabled>false</disabled> <disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers> <triggers/>
<hudson.triggers.TimerTrigger>
<spec>0 7,13,17 * * *</spec>
</hudson.triggers.TimerTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild> <concurrentBuild>false</concurrentBuild>
<rootModule> <rootModule>
<groupId>org.ylhealth.ym.hrb.oauth</groupId> <groupId>org.ylhealth.ym.hrb.oauth</groupId>
...@@ -52,7 +68,7 @@ ...@@ -52,7 +68,7 @@
<defaultGoals>spring-boot:run</defaultGoals> <defaultGoals>spring-boot:run</defaultGoals>
<aggregatorStyleBuild>true</aggregatorStyleBuild> <aggregatorStyleBuild>true</aggregatorStyleBuild>
<incrementalBuild>false</incrementalBuild> <incrementalBuild>false</incrementalBuild>
<ignoreUpstremChanges>false</ignoreUpstremChanges> <ignoreUpstremChanges>true</ignoreUpstremChanges>
<ignoreUnsuccessfulUpstreams>false</ignoreUnsuccessfulUpstreams> <ignoreUnsuccessfulUpstreams>false</ignoreUnsuccessfulUpstreams>
<archivingDisabled>true</archivingDisabled> <archivingDisabled>true</archivingDisabled>
<siteArchivingDisabled>false</siteArchivingDisabled> <siteArchivingDisabled>false</siteArchivingDisabled>
...@@ -109,22 +125,28 @@ ...@@ -109,22 +125,28 @@
<externalDelete></externalDelete> <externalDelete></externalDelete>
<disableDeferredWipeout>false</disableDeferredWipeout> <disableDeferredWipeout>false</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.PreBuildCleanup> </hudson.plugins.ws__cleanup.PreBuildCleanup>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.6.2">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.9"/> <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.9"/>
</buildWrappers> </buildWrappers>
<prebuilders> <prebuilders>
<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=$(echo $GIT_BRANCH | cut -d&apos;/&apos; -f 3) version=$(echo $GIT_BRANCH | cut -d&apos;/&apos; -f 3)
sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/index.html sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;HRB_oAuth v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/index.html
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</prebuilders> </prebuilders>
<postbuilders> <postbuilders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>systemctl stop HRBoAuth <command>PROD_FILE=authservice-pack.zip
rm -f /opt/HRB_oAuth/lib/*.jar KEY_FILE=../../jenkins
/usr/bin/unzip -j -o target/authservice-pack.zip &quot;authservice/lib/*&quot; -d /opt/HRB_oAuth/lib TARGET_HOST=jenkins@${AWS_PRESALE_HRB_oAuth}
systemctl start HRBoAuth</command> 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