Multibranch Pipeline Job builder creates a set of Pipeline projects according to detected branches in a Git repository
name
- job namedescription
- description for the folderbranchSource
- the method used to access the git repo; see
BranchSourceType
for optionsgitCredentials
- Jenkins git credentials GUID used to scan branches, etcghOwner
- name of the organization or user when branchSource is 'GitHub'ghRepo
- name of the git repo when branchSource is 'GitHub'ghApiEndpoint
- (optional) the URL of the GitHub API endpoint
when branchSource is 'GitHub'; when pointing to a GitHub Enterprise API URL,
you will first need to make the corresponding configurations in your Jenkins's
'GitHub' and 'GitHub Enterprise Servers' sections on the 'Configure System'
page (otherwise a custom non-github.com API endpoint will not work)gitRemote
- the URL of the git repo when branchSource is 'git'oldNumToKeep
- (optional) Number of builds to keep after a git branch
has been removedModifiers | Name | Description |
---|---|---|
enum |
MultibranchPipelineJobBuilder.BranchSourceType |
Type | Name and description |
---|---|
MultibranchPipelineJobBuilder.BranchSourceType |
branchSource |
java.lang.String |
description |
java.lang.String |
ghApiEndpoint |
java.lang.String |
ghOwner |
java.lang.String |
ghRepo |
java.lang.String |
gitCredentials |
java.lang.String |
gitRemote |
java.lang.String |
name |
int |
oldNumToKeep |
Type Params | Return Type | Name and description |
---|---|---|
|
javaposse.jobdsl.dsl.jobs.MultibranchWorkflowJob |
build(javaposse.jobdsl.dsl.DslFactory factory) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |