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
94061e61
Commit
94061e61
authored
Dec 24, 2018
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scott: Job [Deploy_TW_AWS_HRA_Prod] configuration updated
Change performed by ·¨¼y°ó
parent
9831dfec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
jobs/Deploy_TW_AWS_HRA_Prod/config.xml
jobs/Deploy_TW_AWS_HRA_Prod/config.xml
+22
-6
No files found.
jobs/Deploy_TW_AWS_HRA_Prod/config.xml
View file @
94061e61
...
...
@@ -17,6 +17,12 @@ hotfix/1.15.1GA</description>
<defaultValue>
feature/I18N
</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_TW_HRB_AP
</name>
<description></description>
<defaultValue>
13.231.249.208
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
...
...
@@ -45,7 +51,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>
...
...
@@ -74,8 +80,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>
...
...
@@ -94,6 +99,11 @@ hotfix/1.15.1GA</description>
<commitInfoChoice>
NONE
</commitInfoChoice>
<includeCustomMessage>
true
</includeCustomMessage>
<customMessage></customMessage>
<customMessageSuccess></customMessageSuccess>
<customMessageAborted></customMessageAborted>
<customMessageNotBuilt></customMessageNotBuilt>
<customMessageUnstable></customMessageUnstable>
<customMessageFailure></customMessageFailure>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
...
...
@@ -112,13 +122,19 @@ 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/
<
title.*/
<
title
>
Form v${version}_${VAR}
<
\/title\/
>
/
"
WebContent/WEB-INF/jsp/home/home.jsp
</command>
sed -i
"
"
"
s/
<
title.*/
<
title
>
Form v${version}_${VAR}
<
\/title\/
>
/
"
WebContent/WEB-INF/jsp/home/home.jsp
</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>
ssh -i /root/.ssh/id_rsa ec2-user@13.231.249.208
"
rm -f ylhealth-hra.war
"
scp -i /root/.ssh/id_rsa target/ylhealth-hra.war ec2-user@13.231.249.208:~/
</command>
<command>
PROD_FILE=ylhealth-hra.war
KEY_FILE=../../jenkins
TARGET_HOST=jenkins@${AWS_TW_HRB_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