Package jenkins.branch
Class NamedExceptionsBranchPropertyStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<BranchPropertyStrategy>
jenkins.branch.BranchPropertyStrategy
jenkins.branch.NamedExceptionsBranchPropertyStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchPropertyStrategy>
Allows named branches to get different properties from the rest.
- Author:
- Stephen Connolly
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Holds the specific named exception details.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionNamedExceptionsBranchPropertyStrategy
(BranchProperty[] defaultProperties, NamedExceptionsBranchPropertyStrategy.Named[] namedExceptions) Stapler's constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the default properties.Gets the named exceptions to the defaults.getPropertiesFor
(jenkins.scm.api.SCMHead head) Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.Methods inherited from class jenkins.branch.BranchPropertyStrategy
getDescriptor
-
Constructor Details
-
NamedExceptionsBranchPropertyStrategy
@DataBoundConstructor public NamedExceptionsBranchPropertyStrategy(@CheckForNull BranchProperty[] defaultProperties, @CheckForNull NamedExceptionsBranchPropertyStrategy.Named[] namedExceptions) Stapler's constructor.- Parameters:
defaultProperties
- the properties.namedExceptions
- the named exceptions.
-
-
Method Details
-
getDefaultProperties
Gets the default properties.- Returns:
- the default properties.
-
getNamedExceptions
Gets the named exceptions to the defaults.- Returns:
- the named exceptions to the defaults.
-
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.
-