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
62b9ca9d
Commit
62b9ca9d
authored
Dec 24, 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
0b66b125
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
jobs/Deploy_DHP_HRB_Prod/config.xml
jobs/Deploy_DHP_HRB_Prod/config.xml
+24
-7
No files found.
jobs/Deploy_DHP_HRB_Prod/config.xml
View file @
62b9ca9d
...
...
@@ -18,6 +18,12 @@ hotfix/1.15.1GA</description>
<defaultValue>
DHP
</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_HRB_AP
</name>
<description></description>
<defaultValue>
3.16.159.120
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
...
...
@@ -46,7 +52,7 @@ hotfix/1.15.1GA</description>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
HCC_Proxy
</assignedNode>
<assignedNode>
AWS_BUILD_Machine
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
...
...
@@ -76,8 +82,7 @@ hotfix/1.15.1GA</description>
<globalSettings
class=
"jenkins.mvn.DefaultGlobalSettingsProvider"
/>
<reporters/>
<publishers>
<jenkins.plugins.slack.SlackNotifier
plugin=
"slack@2.9"
>
<baseUrl></baseUrl>
<jenkins.plugins.slack.SlackNotifier
plugin=
"slack@2.12"
>
<teamDomain></teamDomain>
<tokenCredentialId></tokenCredentialId>
<botUser>
false
</botUser>
...
...
@@ -95,6 +100,12 @@ hotfix/1.15.1GA</description>
<includeFailedTests>
false
</includeFailedTests>
<commitInfoChoice>
NONE
</commitInfoChoice>
<includeCustomMessage>
false
</includeCustomMessage>
<customMessage></customMessage>
<customMessageSuccess></customMessageSuccess>
<customMessageAborted></customMessageAborted>
<customMessageNotBuilt></customMessageNotBuilt>
<customMessageUnstable></customMessageUnstable>
<customMessageFailure></customMessageFailure>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
...
...
@@ -113,15 +124,21 @@ hotfix/1.15.1GA</description>
<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
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.Shell>
<command>
ssh -i /root/.ssh/id_rsa ec2-user@3.16.159.120
"
rm -f HRB-pack.zip
"
scp -i /root/.ssh/id_rsa target/HRB-pack.zip ec2-user@3.16.159.120:~/
</command>
<command>
PROD_FILE=HRB-pack.zip
KEY_FILE=../../jenkins
TARGET_HOST=jenkins@${AWS_CHM_AP}
SSH_PROXY=
"
ProxyCommand ssh -i ${KEY_FILE} proxy@10.57.117.130 nc %h %p
"
ssh -i ${KEY_FILE} -o
"
${SSH_PROXY}
"
${TARGET_HOST}
"
rm -f ${PROD_FILE}
"
scp -i ${KEY_FILE} -o
"
${SSH_PROXY}
"
target/${PROD_FILE} ${TARGET_HOST}:~/
</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult>
...
...
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