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
493da55d
Commit
493da55d
authored
May 09, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20160017: Job [Deploy_AWS_Presale_HRA_Prod] configuration updated
Change performed by ÁªþÈ
parent
8ddce2d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
148 additions
and
0 deletions
+148
-0
config.xml
config.xml
+1
-0
jobs/Deploy_AWS_Presale_HRA_Prod/config.xml
jobs/Deploy_AWS_Presale_HRA_Prod/config.xml
+147
-0
No files found.
config.xml
View file @
493da55d
...
@@ -810,6 +810,7 @@
...
@@ -810,6 +810,7 @@
<comparator
class=
"hudson.util.CaseInsensitiveComparator"
/>
<comparator
class=
"hudson.util.CaseInsensitiveComparator"
/>
<string>
Deploy_AWS_Presale_CHM_Prod
</string>
<string>
Deploy_AWS_Presale_CHM_Prod
</string>
<string>
Deploy_AWS_Presale_CHMB_Prod
</string>
<string>
Deploy_AWS_Presale_CHMB_Prod
</string>
<string>
Deploy_AWS_Presale_HRA_Prod
</string>
<string>
Deploy_AWS_Presale_HRB_Prod
</string>
<string>
Deploy_AWS_Presale_HRB_Prod
</string>
<string>
Deploy_HRB_oAuth_PRESALE_AWS
</string>
<string>
Deploy_HRB_oAuth_PRESALE_AWS
</string>
</jobNames>
</jobNames>
...
...
jobs/Deploy_AWS_Presale_HRA_Prod/config.xml
0 → 100644
View file @
493da55d
<?xml version='1.1' encoding='UTF-8'?>
<maven2-moduleset
plugin=
"maven-plugin@3.2"
>
<actions/>
<description>
打包完會將 war 檔放到 10.36.220.164:/home/ymadmin 下
</description>
<keepDependencies>
false
</keepDependencies>
<properties>
<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>
如
release/1.15GA
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>
<strategy
class=
"hudson.tasks.LogRotator"
>
<daysToKeep>
-1
</daysToKeep>
<numToKeep>
5
</numToKeep>
<artifactDaysToKeep>
-1
</artifactDaysToKeep>
<artifactNumToKeep>
-1
</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
</properties>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@3.9.4"
>
<configVersion>
2
</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>
https://cm.ylhealth.org/gitlab/ym/HRB-Rule-Engine.git
</url>
<credentialsId>
3485e854-8389-40e8-8c86-b94e94e91904
</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>
*/${GIT_BRANCH}
</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>
false
</doGenerateSubmoduleConfigurations>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
AWS_BUILD_Machine
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>
false
</concurrentBuild>
<rootModule>
<groupId>
com.ylhealth.hra
</groupId>
<artifactId>
ylhealth_hra
</artifactId>
</rootModule>
<goals>
clean package -Dmaven.test.skip=true -P !jenkins,prod
</goals>
<defaultGoals>
jetty:run
</defaultGoals>
<aggregatorStyleBuild>
true
</aggregatorStyleBuild>
<incrementalBuild>
false
</incrementalBuild>
<ignoreUpstremChanges>
false
</ignoreUpstremChanges>
<ignoreUnsuccessfulUpstreams>
false
</ignoreUnsuccessfulUpstreams>
<archivingDisabled>
true
</archivingDisabled>
<siteArchivingDisabled>
true
</siteArchivingDisabled>
<fingerprintingDisabled>
true
</fingerprintingDisabled>
<resolveDependencies>
false
</resolveDependencies>
<processPlugins>
false
</processPlugins>
<mavenValidationLevel>
-1
</mavenValidationLevel>
<runHeadless>
false
</runHeadless>
<disableTriggerDownstreamProjects>
true
</disableTriggerDownstreamProjects>
<settings
class=
"jenkins.mvn.DefaultSettingsProvider"
/>
<globalSettings
class=
"jenkins.mvn.DefaultGlobalSettingsProvider"
/>
<reporters/>
<publishers>
<jenkins.plugins.slack.SlackNotifier
plugin=
"slack@2.23"
>
<teamDomain></teamDomain>
<tokenCredentialId></tokenCredentialId>
<botUser>
false
</botUser>
<room></room>
<startNotification>
false
</startNotification>
<notifySuccess>
false
</notifySuccess>
<notifyAborted>
true
</notifyAborted>
<notifyNotBuilt>
true
</notifyNotBuilt>
<notifyUnstable>
true
</notifyUnstable>
<notifyRegression>
false
</notifyRegression>
<notifyFailure>
true
</notifyFailure>
<notifyEveryFailure>
false
</notifyEveryFailure>
<notifyBackToNormal>
true
</notifyBackToNormal>
<notifyRepeatedFailure>
false
</notifyRepeatedFailure>
<includeTestSummary>
false
</includeTestSummary>
<includeFailedTests>
false
</includeFailedTests>
<commitInfoChoice>
NONE
</commitInfoChoice>
<includeCustomMessage>
true
</includeCustomMessage>
<customMessage></customMessage>
<customMessageSuccess></customMessageSuccess>
<customMessageAborted></customMessageAborted>
<customMessageNotBuilt></customMessageNotBuilt>
<customMessageUnstable></customMessageUnstable>
<customMessageFailure></customMessageFailure>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup
plugin=
"ws-cleanup@0.37"
>
<deleteDirs>
false
</deleteDirs>
<cleanupParameter></cleanupParameter>
<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=${GIT_BRANCH##*/}
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>
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>
<name>
SUCCESS
</name>
<ordinal>
0
</ordinal>
<color>
BLUE
</color>
<completeBuild>
true
</completeBuild>
</runPostStepsIfResult>
</maven2-moduleset>
\ No newline at end of file
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