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
6bb368af
Commit
6bb368af
authored
Jun 11, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20160017: Job [Deploy_TW_AWS_HRB_oAuth] configuration updated
Change performed by ÁªþÈ
parent
d8229520
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
jobs/Deploy_TW_AWS_HRB_oAuth/config.xml
jobs/Deploy_TW_AWS_HRB_oAuth/config.xml
+18
-9
No files found.
jobs/Deploy_TW_AWS_HRB_oAuth/config.xml
View file @
6bb368af
...
...
@@ -44,6 +44,16 @@
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.12"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition
plugin=
"global-variable-string-parameter@1.2"
>
<name>
AWS_HRB_EXPERT_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>
<strategy
class=
"hudson.tasks.LogRotator"
>
<daysToKeep>
1
</daysToKeep>
...
...
@@ -75,11 +85,7 @@
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<triggers>
<hudson.triggers.TimerTrigger>
<spec>
0 7,13,17 * * *
</spec>
</hudson.triggers.TimerTrigger>
</triggers>
<triggers/>
<concurrentBuild>
false
</concurrentBuild>
<rootModule>
<groupId>
org.ylhealth.ym.hrb.oauth
</groupId>
...
...
@@ -159,10 +165,13 @@ sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${ve
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>
systemctl stop HRBoAuth
rm -f /opt/HRB_oAuth/lib/*.jar
/usr/bin/unzip -j -o target/authservice-pack.zip
"
authservice/lib/*
"
-d /opt/HRB_oAuth/lib
systemctl start HRBoAuth
</command>
<command>
PROD_FILE=authservice-pack.zip
KEY_FILE=../../jenkins
TARGET_HOST=jenkins@${AWS_HRB_PRESALE_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