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
850ae5da
Commit
850ae5da
authored
Apr 29, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20160017: Job [Deploy_HRB_oAuth_PRESALE_AWS] configuration updated
Change performed by ÁªþÈ
parent
6e2f38ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
12 deletions
+34
-12
jobs/Deploy_HRB_oAuth_PRESALE_AWS/config.xml
jobs/Deploy_HRB_oAuth_PRESALE_AWS/config.xml
+34
-12
No files found.
jobs/Deploy_HRB_oAuth_PRESALE_AWS/config.xml
View file @
850ae5da
...
...
@@ -7,6 +7,26 @@
<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>
GIT_BRANCH
</name>
<description>
如
master
release/1.15GA
hotfix/1.15.1GA
feature/HEALTHERA-77
</description>
<defaultValue>
expert_develop
</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_PRESALE_HRB_oAuth
</name>
<description></description>
<defaultValue>
13.115.232.200
</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>
...
...
@@ -33,16 +53,12 @@
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
PRESALEt_172.16.40.163
</assignedNode>
<assignedNode>
AWS_BUILD_Machine
</assignedNode>
<canRoam>
false
</canRoam>
<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>
...
...
@@ -52,7 +68,7 @@
<defaultGoals>
spring-boot:run
</defaultGoals>
<aggregatorStyleBuild>
true
</aggregatorStyleBuild>
<incrementalBuild>
false
</incrementalBuild>
<ignoreUpstremChanges>
fals
e
</ignoreUpstremChanges>
<ignoreUpstremChanges>
tru
e
</ignoreUpstremChanges>
<ignoreUnsuccessfulUpstreams>
false
</ignoreUnsuccessfulUpstreams>
<archivingDisabled>
true
</archivingDisabled>
<siteArchivingDisabled>
false
</siteArchivingDisabled>
...
...
@@ -109,22 +125,28 @@
<externalDelete></externalDelete>
<disableDeferredWipeout>
false
</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper
plugin=
"ansicolor@0.6.2"
>
<colorMapName>
xterm
</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<hudson.plugins.timestamper.TimestamperBuildWrapper
plugin=
"timestamper@1.9"
/>
</buildWrappers>
<prebuilders>
<hudson.tasks.Shell>
<command>
VAR=$(git rev-parse --short HEAD)_$(date +
"
%Y%m%d_%H%M
"
)
version=$(echo $GIT_BRANCH | cut -d
'
/
'
-f 3)
sed -i
"
s/
<
title.*/
<
title ng-bind=
'
page_title
'>
CRM
v${version}_${VAR}
<
\/title\/
>
/
"
src/main/resources/static/index.html
sed -i
"
s/
<
title.*/
<
title ng-bind=
'
page_title
'>
HRB_oAuth
v${version}_${VAR}
<
\/title\/
>
/
"
src/main/resources/static/index.html
</command>
</hudson.tasks.Shell>
</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_PRESALE_HRB_oAuth}
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