Commit c0e8045b 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 2b3d3f62
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
master master
release/1.15GA release/1.15GA
hotfix/1.15.1GA</description> hotfix/1.15.1GA</description>
<defaultValue>master</defaultValue> <defaultValue>DHP</defaultValue>
<trim>false</trim> <trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition> </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions> </parameterDefinitions>
...@@ -46,7 +46,7 @@ hotfix/1.15.1GA</description> ...@@ -46,7 +46,7 @@ hotfix/1.15.1GA</description>
<submoduleCfg class="list"/> <submoduleCfg class="list"/>
<extensions/> <extensions/>
</scm> </scm>
<assignedNode>Build_Prod_127</assignedNode> <assignedNode>HCC_Proxy</assignedNode>
<canRoam>false</canRoam> <canRoam>false</canRoam>
<disabled>false</disabled> <disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
...@@ -74,19 +74,11 @@ hotfix/1.15.1GA</description> ...@@ -74,19 +74,11 @@ hotfix/1.15.1GA</description>
<blockTriggerWhenBuilding>true</blockTriggerWhenBuilding> <blockTriggerWhenBuilding>true</blockTriggerWhenBuilding>
<settings class="jenkins.mvn.DefaultSettingsProvider"/> <settings class="jenkins.mvn.DefaultSettingsProvider"/>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/> <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
<reporters> <reporters/>
<hudson.maven.reporters.MavenMailer>
<recipients>$RD_Group $QA_Group</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>false</sendToIndividuals>
<perModuleEmail>true</perModuleEmail>
</hudson.maven.reporters.MavenMailer>
</reporters>
<publishers> <publishers>
<jenkins.plugins.slack.SlackNotifier plugin="slack@2.9"> <jenkins.plugins.slack.SlackNotifier plugin="slack@2.9">
<baseUrl></baseUrl> <baseUrl></baseUrl>
<teamDomain></teamDomain> <teamDomain></teamDomain>
<authToken></authToken>
<tokenCredentialId></tokenCredentialId> <tokenCredentialId></tokenCredentialId>
<botUser>false</botUser> <botUser>false</botUser>
<room></room> <room></room>
...@@ -103,7 +95,6 @@ hotfix/1.15.1GA</description> ...@@ -103,7 +95,6 @@ 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>
</jenkins.plugins.slack.SlackNotifier> </jenkins.plugins.slack.SlackNotifier>
</publishers> </publishers>
<buildWrappers> <buildWrappers>
...@@ -119,31 +110,19 @@ hotfix/1.15.1GA</description> ...@@ -119,31 +110,19 @@ hotfix/1.15.1GA</description>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.8.10"/> <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.8.10"/>
</buildWrappers> </buildWrappers>
<prebuilders> <prebuilders>
<hudson.tasks.BatchFile> <hudson.tasks.Shell>
<command>set path=%path%;&quot;C:\Program Files\Git\usr\bin&quot;;&#xd; <command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;)
&#xd; version=${GIT_BRANCH##*/}
REM 取得今天的年、月、日 (自動補零)&#xd; sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/index.html
SETLOCAL EnableDelayedExpansion&#xd; sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; src/main/resources/static/login.html
&#xd; </command>
for /f &quot;skip=1 tokens=1-6 delims= &quot; %%a in (&apos;wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table&apos;) do (&#xd; </hudson.tasks.Shell>
IF NOT &quot;%%~f&quot;==&quot;&quot; (&#xd;
set /a FormattedDate=10000 * %%f + 100 * %%d + %%a&#xd;
set FormattedDate=%%f!FormattedDate:~-4,2!!FormattedDate:~-2,2!_%%b:%%c&#xd;
)&#xd;
)&#xd;
for /f &quot;tokens=*&quot; %%i in (&apos;git rev-parse --short HEAD&apos;) do set VAR=%%i_%FormattedDate%&#xd;
for /F &quot;delims=/ tokens=3&quot; %%i in (&quot;%GIT_BRANCH%&quot;) do set version=%%i&#xd;
&#xd;
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;%version%_%VAR%\&quot;\/&gt;/&quot; src/main/resources/static/index.html&#xd;
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;%version%_%VAR%\&quot;\/&gt;/&quot; src/main/resources/static/login.html</command>
</hudson.tasks.BatchFile>
</prebuilders> </prebuilders>
<postbuilders> <postbuilders>
<hudson.tasks.BatchFile> <hudson.tasks.Shell>
<command>ssh -i F:/jenkins/id_rsa ymadmin@10.36.220.162 &quot;rm -f /opt/HRB/HRB-pack.zip&quot;&#xd; <command>ssh -i dih ec2-user@3.16.159.120 &quot;rm -f /opt/HRB-pack.zip&quot;
scp -i F:/jenkins/id_rsa target/HRB-pack.zip ymadmin@10.36.220.162:/opt/HRB/&#xd; scp -i dih target/HRB-pack.zip ec2-user@3.16.159.120:/opt/</command>
</command> </hudson.tasks.Shell>
</hudson.tasks.BatchFile>
</postbuilders> </postbuilders>
<runPostStepsIfResult> <runPostStepsIfResult>
<name>SUCCESS</name> <name>SUCCESS</name>
......
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