Package jenkins.branch
Class DefaultBranchPropertyStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<BranchPropertyStrategy>
jenkins.branch.BranchPropertyStrategy
jenkins.branch.DefaultBranchPropertyStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchPropertyStrategy>
A very simple
BranchPropertyStrategy
that just returns the same set of properties for all SCMHead
instances.- Author:
- Stephen Connolly
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionStapler's constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetPropertiesFor
(jenkins.scm.api.SCMHead head) Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.getProps()
Gets the properties.Methods inherited from class jenkins.branch.BranchPropertyStrategy
getDescriptor
-
Constructor Details
-
DefaultBranchPropertyStrategy
Stapler's constructor.- Parameters:
props
- the properties.
-
-
Method Details
-
getProps
Gets the properties.- Returns:
- the properties.
-
getPropertiesFor
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.
-