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
9cbb3c47
Commit
9cbb3c47
authored
May 23, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20160017: Job [Deploy_AWS_Presale_HRB_oAuth_Resource_Prod] configuration
updated Change performed by ÁªþÈ
parent
8916b1b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml
jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml
+16
-5
No files found.
jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml
View file @
9cbb3c47
...
...
@@ -15,6 +15,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_PRESALE_AP
</name>
<description></description>
<defaultValue>
13.115.232.200
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@3.10.0"
>
<configVersion>
2
</configVersion>
...
...
@@ -110,12 +120,13 @@ version=$(echo $GIT_BRANCH | cut -d'/' -f 3)
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>
systemctl stop HRBResource
rm -f /opt/HRBResourceServer/lib/*.jar
/usr/bin/unzip -j -o target/resource_server-pack.zip
"
resource_server/lib/*
"
-d /opt/HRBResourceServer/lib
<command>
PROD_FILE=HRB-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
"
systemctl start HRBResource
</command>
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