Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
jenkins
Commits
c0e8045b
Commit
c0e8045b
authored
Dec 18, 2018
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scott: Job [Deploy_DHP_HRB_Prod] configuration updated
Change performed by ·¨¼y°ó
parent
2b3d3f62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
35 deletions
+14
-35
jobs/Deploy_DHP_HRB_Prod/config.xml
jobs/Deploy_DHP_HRB_Prod/config.xml
+14
-35
No files found.
jobs/Deploy_DHP_HRB_Prod/config.xml
View file @
c0e8045b
...
...
@@ -15,7 +15,7 @@
master
release/1.15GA
hotfix/1.15.1GA
</description>
<defaultValue>
master
</defaultValue>
<defaultValue>
DHP
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
...
...
@@ -46,7 +46,7 @@ hotfix/1.15.1GA</description>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
Build_Prod_127
</assignedNode>
<assignedNode>
HCC_Proxy
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
...
...
@@ -74,19 +74,11 @@ hotfix/1.15.1GA</description>
<blockTriggerWhenBuilding>
true
</blockTriggerWhenBuilding>
<settings
class=
"jenkins.mvn.DefaultSettingsProvider"
/>
<globalSettings
class=
"jenkins.mvn.DefaultGlobalSettingsProvider"
/>
<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>
<reporters/>
<publishers>
<jenkins.plugins.slack.SlackNotifier
plugin=
"slack@2.9"
>
<baseUrl></baseUrl>
<teamDomain></teamDomain>
<authToken></authToken>
<tokenCredentialId></tokenCredentialId>
<botUser>
false
</botUser>
<room></room>
...
...
@@ -103,7 +95,6 @@ hotfix/1.15.1GA</description>
<includeFailedTests>
false
</includeFailedTests>
<commitInfoChoice>
NONE
</commitInfoChoice>
<includeCustomMessage>
false
</includeCustomMessage>
<customMessage></customMessage>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
...
...
@@ -119,31 +110,19 @@ hotfix/1.15.1GA</description>
<hudson.plugins.timestamper.TimestamperBuildWrapper
plugin=
"timestamper@1.8.10"
/>
</buildWrappers>
<prebuilders>
<hudson.tasks.BatchFile>
<command>
set path=%path%;
"
C:\Program Files\Git\usr\bin
"
;


REM 取得今天的年、月、日 (自動補零)

SETLOCAL EnableDelayedExpansion


for /f
"
skip=1 tokens=1-6 delims=
"
%%a in (
'
wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table
'
) do (

IF NOT
"
%%~f
"
==
""
(

set /a FormattedDate=10000 * %%f + 100 * %%d + %%a

set FormattedDate=%%f!FormattedDate:~-4,2!!FormattedDate:~-2,2!_%%b:%%c

)

)

for /f
"
tokens=*
"
%%i in (
'
git rev-parse --short HEAD
'
) do set VAR=%%i_%FormattedDate%

for /F
"
delims=/ tokens=3
"
%%i in (
"
%GIT_BRANCH%
"
) do set version=%%i


sed -i
"
s/
<
base.*/
<
base href=\
"
\/\
"
version=\
"
%version%_%VAR%\
"
\/
>
/
"
src/main/resources/static/index.html

sed -i
"
s/
<
base.*/
<
base href=\
"
\/\
"
version=\
"
%version%_%VAR%\
"
\/
>
/
"
src/main/resources/static/login.html
</command>
</hudson.tasks.BatchFile>
<hudson.tasks.Shell>
<command>
VAR=$(git rev-parse --short HEAD)_$(date +
"
%Y%m%d_%H%M
"
)
version=${GIT_BRANCH##*/}
sed -i
"
s/
<
base.*/
<
base href=\
"
\/\
"
version=\
"
${version}_${VAR}\
"
\/
>
/
"
src/main/resources/static/index.html
sed -i
"
s/
<
base.*/
<
base href=\
"
\/\
"
version=\
"
${version}_${VAR}\
"
\/
>
/
"
src/main/resources/static/login.html
</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders>
<hudson.tasks.BatchFile>
<command>
ssh -i F:/jenkins/id_rsa ymadmin@10.36.220.162
"
rm -f /opt/HRB/HRB-pack.zip
"
scp -i F:/jenkins/id_rsa target/HRB-pack.zip ymadmin@10.36.220.162:/opt/HRB/

</command>
</hudson.tasks.BatchFile>
<hudson.tasks.Shell>
<command>
ssh -i dih ec2-user@3.16.159.120
"
rm -f /opt/HRB-pack.zip
"
scp -i dih target/HRB-pack.zip ec2-user@3.16.159.120:/opt/
</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult>
<name>
SUCCESS
</name>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment