public abstract class AbstractMultiBranchCreateRequest extends AbstractPipelineCreateRequest
MultiBranchProjects with a single SCMSource| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMultiBranchCreateRequest.JenkinsfileCriteria |
scmConfig| Constructor and Description |
|---|
AbstractMultiBranchCreateRequest(String name,
io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig) |
| Modifier and Type | Method and Description |
|---|---|
io.jenkins.blueocean.rest.model.BluePipeline |
create(io.jenkins.blueocean.rest.model.BlueOrganization organization,
io.jenkins.blueocean.rest.Reachable parent) |
protected abstract jenkins.scm.api.SCMSource |
createSource(jenkins.branch.MultiBranchProject project,
io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
Create the source for the MultiBranchProject created with this request
|
protected AbstractScmSourceEvent |
getScmSourceEvent(jenkins.branch.MultiBranchProject project,
jenkins.scm.api.SCMSource source) |
protected boolean |
repoHasJenkinsFile(jenkins.scm.api.SCMSource scmSource)
Certain SCMSource can tell whether it can detect presence of Jenkinsfile across all branches
|
protected abstract List<io.jenkins.blueocean.commons.ErrorMessage.Error> |
validate(String name,
io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
Validate the provided SCMConfig and test that a connection can be made to the SCM server
|
checkUserIsAuthenticatedAndHasItemCreatePermission, computeCredentialId, createProject, getParentpublic AbstractMultiBranchCreateRequest(String name, io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
public io.jenkins.blueocean.rest.model.BluePipeline create(@Nonnull io.jenkins.blueocean.rest.model.BlueOrganization organization, @Nonnull io.jenkins.blueocean.rest.Reachable parent) throws IOException
create in class io.jenkins.blueocean.rest.model.BluePipelineCreateRequestIOException@Nullable protected AbstractScmSourceEvent getScmSourceEvent(@Nonnull jenkins.branch.MultiBranchProject project, @Nonnull jenkins.scm.api.SCMSource source)
SCMSourceEventprotected abstract jenkins.scm.api.SCMSource createSource(@Nonnull jenkins.branch.MultiBranchProject project, @Nonnull io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
project - that was createdscmConfig - configprotected abstract List<io.jenkins.blueocean.commons.ErrorMessage.Error> validate(String name, io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
name - of pipeline being createdscmConfig - to validateprotected boolean repoHasJenkinsFile(@Nonnull jenkins.scm.api.SCMSource scmSource)
scmSource - scm sourceCopyright © 2016–2020. All rights reserved.