public class DefaultBranchPropertyStrategy extends BranchPropertyStrategy
BranchPropertyStrategy
that just returns the same set of properties for all SCMHead
instances.Modifier and Type | Class and Description |
---|---|
static class |
DefaultBranchPropertyStrategy.DescriptorImpl
|
Constructor and Description |
---|
DefaultBranchPropertyStrategy(BranchProperty[] props)
Stapler's constructor.
|
Modifier and Type | Method and Description |
---|---|
List<BranchProperty> |
getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into the
Branch for the specified SCMHead . |
List<BranchProperty> |
getProps()
Gets the properties.
|
getDescriptor
@DataBoundConstructor public DefaultBranchPropertyStrategy(@CheckForNull BranchProperty[] props)
props
- the properties.@NonNull public List<BranchProperty> getProps()
@NonNull public List<BranchProperty> getPropertiesFor(jenkins.scm.api.SCMHead head)
Branch
for the specified SCMHead
.getPropertiesFor
in class BranchPropertyStrategy
head
- the SCMHead
Copyright © 2016–2017. All rights reserved.