public class Branch extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Branch.Dead
Represents a dead branch.
|
| Constructor and Description |
|---|
Branch(String sourceId,
jenkins.scm.api.SCMHead head,
hudson.scm.SCM scm,
List<? extends BranchProperty> properties)
Constructs a branch instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> |
configureBuildWrappers(Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> wrappers)
Takes the supplied build wrappers and gives each
BranchProperty the option to contribute to the result. |
<JobT extends hudson.model.Job<?,?>> |
configureJobProperties(List<hudson.model.JobProperty<? super JobT>> jobProperties)
Takes the supplied job properties and gives each
BranchProperty the option to contribute to the result. |
Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> |
configurePublishers(Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> publishers)
Takes the supplied publishers and gives each
BranchProperty the option to contribute to the result. |
boolean |
equals(Object o) |
jenkins.scm.api.SCMHead |
getHead()
Returns the
of the branch |
String |
getName()
Returns the name of the branch.
|
List<BranchProperty> |
getProperties()
Gets all the properties.
|
<T extends BranchProperty> |
getProperty(Class<T> clazz)
Gets the specific property, or null if no such property is found.
|
hudson.scm.SCM |
getScm()
Returns the
SCM for the branch. |
String |
getSourceId()
Returns the
SCMSource.getId() that this branch originates from. |
int |
hashCode() |
boolean |
hasProperty(Class<? extends BranchProperty> clazz)
Tests if a property of a specific type is present.
|
boolean |
isBuildable()
Returns
true iff the branch is can be built. |
public Branch(String sourceId, jenkins.scm.api.SCMHead head, hudson.scm.SCM scm, List<? extends BranchProperty> properties)
sourceId - the SCMSource.getId()head - the name of the branch.scm - the SCM for the branch.public String getSourceId()
SCMSource.getId() that this branch originates from.SCMSource.getId() that this branch originates from.public String getName()
public jenkins.scm.api.SCMHead getHead()
of the branchof the branchpublic hudson.scm.SCM getScm()
SCM for the branch.SCM for the branch.public boolean hasProperty(Class<? extends BranchProperty> clazz)
clazz - the specific property typetrue if and only if there is a property of the specified type.public <T extends BranchProperty> T getProperty(Class<T> clazz)
public List<BranchProperty> getProperties()
public Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> configurePublishers(Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> publishers)
BranchProperty the option to contribute to the result.publishers - the suggested publishers.public Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> configureBuildWrappers(Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> wrappers)
BranchProperty the option to contribute to the result.wrappers - the suggested build wrappers.public <JobT extends hudson.model.Job<?,?>> List<hudson.model.JobProperty<? super JobT>> configureJobProperties(List<hudson.model.JobProperty<? super JobT>> jobProperties)
BranchProperty the option to contribute to the result.jobProperties - the suggested job properties.public boolean isBuildable()
true iff the branch is can be built.true iff the branch is can be built.Copyright © 2004-2013. All Rights Reserved.