Package jenkins.branch
Class BranchSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BranchSource>
-
- jenkins.branch.BranchSource
-
- All Implemented Interfaces:
Describable<BranchSource>
@ExportedBean public class BranchSource extends AbstractDescribableImpl<BranchSource>
A source of branches, which consists of a source and a strategy for creating properties of the branches from this source.- Author:
- Stephen Connolly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BranchSource.DescriptorImpl
OurDescriptor
.
-
Constructor Summary
Constructors Constructor Description BranchSource(jenkins.scm.api.SCMSource source)
BranchSource(jenkins.scm.api.SCMSource source, BranchPropertyStrategy strategy)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BranchBuildStrategy>
getBuildStrategies()
Gets the rules for automatic building of branches to apply on this source.jenkins.scm.api.SCMSource
getSource()
Gets the source.BranchPropertyStrategy
getStrategy()
Gets the strategy.void
setBuildStrategies(List<BranchBuildStrategy> buildStrategies)
Gets the rules for automatic building of branches to apply on this source.void
setStrategy(BranchPropertyStrategy strategy)
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
BranchSource
@DataBoundConstructor public BranchSource(jenkins.scm.api.SCMSource source)
-
BranchSource
@Deprecated public BranchSource(jenkins.scm.api.SCMSource source, BranchPropertyStrategy strategy)
Deprecated.
-
-
Method Detail
-
getSource
@Exported @NonNull public jenkins.scm.api.SCMSource getSource()
Gets the source.- Returns:
- the source.
-
getStrategy
public BranchPropertyStrategy getStrategy()
Gets the strategy.- Returns:
- the strategy.
-
setStrategy
@DataBoundSetter public void setStrategy(BranchPropertyStrategy strategy)
-
getBuildStrategies
@NonNull public List<BranchBuildStrategy> getBuildStrategies()
Gets the rules for automatic building of branches to apply on this source.- Returns:
- the rules for automatic building of branches to apply on this source.
- Since:
- 2.0.0
-
setBuildStrategies
@DataBoundSetter public void setBuildStrategies(@CheckForNull List<BranchBuildStrategy> buildStrategies)
Gets the rules for automatic building of branches to apply on this source.- Parameters:
buildStrategies
- the rules for automatic building of branches to apply on this source.- Since:
- 2.0.0
-
-