Commit 66c833aa authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

scott: Job [Deploy_DHP_CHM_Prod] configuration updated

Change performed by ·¨¼y°ó
parent b9f54d3b
...@@ -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>feature/I18N</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>
...@@ -86,7 +86,6 @@ hotfix/1.15.1GA</description> ...@@ -86,7 +86,6 @@ hotfix/1.15.1GA</description>
<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>
...@@ -102,7 +101,7 @@ hotfix/1.15.1GA</description> ...@@ -102,7 +101,7 @@ hotfix/1.15.1GA</description>
<includeTestSummary>false</includeTestSummary> <includeTestSummary>false</includeTestSummary>
<includeFailedTests>false</includeFailedTests> <includeFailedTests>false</includeFailedTests>
<commitInfoChoice>NONE</commitInfoChoice> <commitInfoChoice>NONE</commitInfoChoice>
<includeCustomMessage>false</includeCustomMessage> <includeCustomMessage>true</includeCustomMessage>
<customMessage></customMessage> <customMessage></customMessage>
</jenkins.plugins.slack.SlackNotifier> </jenkins.plugins.slack.SlackNotifier>
</publishers> </publishers>
...@@ -119,32 +118,19 @@ hotfix/1.15.1GA</description> ...@@ -119,32 +118,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;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM %version%_%VAR%&lt;\/title\/&gt;/&quot; src/main/resources/static/index.html
SETLOCAL EnableDelayedExpansion&#xd; sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/CRM\/\&quot; version=\&quot;%version%_%VAR%\&quot;\/&gt;/&quot; src/main/resources/static/indexMinify.html
&#xd;
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;
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;
echo Version:%VAR%&#xd;
sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM %version%_%VAR%&lt;\/title\/&gt;/&quot; src\main\resources\static\index.html&#xd;
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/CRM\/\&quot; version=\&quot;%version%_%VAR%\&quot;\/&gt;/&quot; src\main\resources\static\indexMinify.html&#xd;
</command> </command>
</hudson.tasks.BatchFile> </hudson.tasks.Shell>
</prebuilders> </prebuilders>
<postbuilders> <postbuilders>
<hudson.tasks.BatchFile> <hudson.tasks.Shell>
<command>ssh -i F:/jenkins/id_rsa ymadmin@10.36.220.122 &quot;rm -f /opt/chm/CRM-pack.zip&quot;&#xd; <command>ssh -i dih ec2-user@3.16.159.120 &quot;rm -f /opt/chm/CRM-pack.zip&quot;
scp -i F:/jenkins/id_rsa target/CRM-pack.zip ymadmin@10.36.220.122:/opt/chm/</command> scp -i dih target/CRM-pack.zip ec2-user@3.16.159.120:/opt/chm/</command>
</hudson.tasks.BatchFile> </hudson.tasks.Shell>
</postbuilders> </postbuilders>
<runPostStepsIfResult> <runPostStepsIfResult>
<name>UNSTABLE</name> <name>UNSTABLE</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