Package jenkins.branch
Class BranchSource
- All Implemented Interfaces:
Describable<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
-
Constructor Summary
ConstructorDescriptionBranchSource
(jenkins.scm.api.SCMSource source) BranchSource
(jenkins.scm.api.SCMSource source, BranchPropertyStrategy strategy) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGets the rules for automatic building of branches to apply on this source.jenkins.scm.api.SCMSource
Gets the source.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 Details
-
BranchSource
@DataBoundConstructor public BranchSource(jenkins.scm.api.SCMSource source) -
BranchSource
Deprecated.
-
-
Method Details
-
getSource
@Exported @NonNull public jenkins.scm.api.SCMSource getSource()Gets the source.- Returns:
- the source.
-
getStrategy
Gets the strategy.- Returns:
- the strategy.
-
setStrategy
-
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
-