public class NamedExceptionsBranchPropertyStrategy extends BranchPropertyStrategy
Modifier and Type | Class and Description |
---|---|
static class |
NamedExceptionsBranchPropertyStrategy.DescriptorImpl
|
static class |
NamedExceptionsBranchPropertyStrategy.Named
Holds the specific named exception details.
|
Constructor and Description |
---|
NamedExceptionsBranchPropertyStrategy(BranchProperty[] defaultProperties,
NamedExceptionsBranchPropertyStrategy.Named[] namedExceptions)
Stapler's constructor.
|
Modifier and Type | Method and Description |
---|---|
List<BranchProperty> |
getDefaultProperties()
Gets the default properties.
|
List<NamedExceptionsBranchPropertyStrategy.Named> |
getNamedExceptions()
Gets the named exceptions to the defaults.
|
List<BranchProperty> |
getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into the
Branch for the specified SCMHead . |
getDescriptor
@DataBoundConstructor public NamedExceptionsBranchPropertyStrategy(@CheckForNull BranchProperty[] defaultProperties, @CheckForNull NamedExceptionsBranchPropertyStrategy.Named[] namedExceptions)
defaultProperties
- the properties.namedExceptions
- the named exceptions.@NonNull public List<BranchProperty> getDefaultProperties()
@NonNull public List<NamedExceptionsBranchPropertyStrategy.Named> getNamedExceptions()
@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.