Package jenkins.branch
Class NamedExceptionsBranchPropertyStrategy.Named
java.lang.Object
hudson.model.AbstractDescribableImpl<NamedExceptionsBranchPropertyStrategy.Named>
jenkins.branch.NamedExceptionsBranchPropertyStrategy.Named
- All Implemented Interfaces:
Describable<NamedExceptionsBranchPropertyStrategy.Named>
- Enclosing class:
- NamedExceptionsBranchPropertyStrategy
public static class NamedExceptionsBranchPropertyStrategy.Named
extends AbstractDescribableImpl<NamedExceptionsBranchPropertyStrategy.Named>
Holds the specific named exception details.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
Named
Constructor- Parameters:
name
- the names to match.props
- the properties that the matching branches will get.
-
-
Method Details
-
getProps
Returns the exception properties.- Returns:
- the exception properties.
-
getName
Returns the name(s) to match.- Returns:
- the name(s) to match.
-
isMatch
public boolean isMatch(@NonNull jenkins.scm.api.SCMHead head) Returnstrue
if the head is a match.- Parameters:
head
- the head.- Returns:
true
if the head is a match.
-
isMatch
Returnstrue
if and only if the branch name matches one of the name(s).- Parameters:
branchName
- the branch name.names
- the name(s) that are valid to match against.- Returns:
true
if and only if the branch name matches one of the name(s).
-