Package jenkins.branch
Class DefaultBranchPropertyStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BranchPropertyStrategy>
-
- jenkins.branch.BranchPropertyStrategy
-
- jenkins.branch.DefaultBranchPropertyStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchPropertyStrategy>
public class DefaultBranchPropertyStrategy extends BranchPropertyStrategy
A very simpleBranchPropertyStrategy
that just returns the same set of properties for allSCMHead
instances.- Author:
- Stephen Connolly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultBranchPropertyStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DefaultBranchPropertyStrategy(BranchProperty[] props)
Stapler's constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BranchProperty>
getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.List<BranchProperty>
getProps()
Gets the properties.-
Methods inherited from class jenkins.branch.BranchPropertyStrategy
getDescriptor
-
-
-
-
Constructor Detail
-
DefaultBranchPropertyStrategy
@DataBoundConstructor public DefaultBranchPropertyStrategy(@CheckForNull BranchProperty[] props)
Stapler's constructor.- Parameters:
props
- the properties.
-
-
Method Detail
-
getProps
@NonNull public List<BranchProperty> getProps()
Gets the properties.- Returns:
- the properties.
-
getPropertiesFor
@NonNull public List<BranchProperty> getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.- Specified by:
getPropertiesFor
in classBranchPropertyStrategy
- Parameters:
head
- theSCMHead
- Returns:
- the list of properties.
-
-