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
9a3ffa83
Commit
9a3ffa83
authored
Aug 24, 2018
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20180083: Job [HRB_Mobile_gitflow] configuration updated
Change performed by §õº~?
parent
def2a280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
106 additions
and
0 deletions
+106
-0
jobs/HRB_Mobile_gitflow/config.xml
jobs/HRB_Mobile_gitflow/config.xml
+106
-0
No files found.
jobs/HRB_Mobile_gitflow/config.xml
0 → 100644
View file @
9a3ffa83
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>
HRB_Mobile 專案 git flow 處理
</description>
<keepDependencies>
false
</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.9"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.BooleanParameterDefinition>
<name>
NEW_BRANCH
</name>
<description>
是否建立新的版本
</description>
<defaultValue>
false
</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>
FLOW
</name>
<description>
release 還是 hotfix
</description>
<choices
class=
"java.util.Arrays$ArrayList"
>
<a
class=
"string-array"
>
<string>
release
</string>
<string>
hotfix
</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
<hudson.model.TextParameterDefinition>
<name>
Version
</name>
<description>
發行的版本
</description>
<defaultValue>
1.32
</defaultValue>
<trim>
false
</trim>
</hudson.model.TextParameterDefinition>
</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.1"
>
<configVersion>
2
</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>
https://cm.ylhealth.org/gitlab/ym/HRB_Mobile/
</url>
<credentialsId>
3485e854-8389-40e8-8c86-b94e94e91904
</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>
*/master
</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>
false
</doGenerateSubmoduleConfigurations>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
MAC_BUILD_Machine
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
# 建立 release branch
if [[
"
$NEW_BRANCH
"
==
"
true
"
]]; then
echo $NEW_BRANCH
fi
git fetch
EXIST=$(git ls-remote --heads |grep $FLOW/$Version)
if [[ -z
"
$EXIST
"
]]; then
if [
"
$FLOW
"
==
"
release
"
]; then
git checkout develop
else
git checkout master
fi
git pull
git checkout -b $FLOW/$Version
git push -u origin $FLOW/$Version
fi
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
git fetch
git checkout master
git pull
git checkout develop
git pull
git checkout $FLOW/$Version
git pull
git log master..$FLOW/$Version --pretty=format:
'
%s
'
| grep -E -o
'
[A-Z]+-[0-9]+
'
| sort|uniq
</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup
plugin=
"ws-cleanup@0.34"
>
<deleteDirs>
false
</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
</buildWrappers>
</project>
\ 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