public static class NamedExceptionsBranchPropertyStrategy.Named extends hudson.model.AbstractDescribableImpl<NamedExceptionsBranchPropertyStrategy.Named>
Modifier and Type | Class and Description |
---|---|
static class |
NamedExceptionsBranchPropertyStrategy.Named.DescriptorImpl
Our
Descriptor |
Constructor and Description |
---|
Named(String name,
BranchProperty[] props)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name(s) to match.
|
List<BranchProperty> |
getProps()
Returns the exception properties.
|
boolean |
isMatch(jenkins.scm.api.SCMHead head)
Returns
true if the head is a match. |
static boolean |
isMatch(String branchName,
String names)
Returns
true if and only if the branch name matches one of the name(s). |
@DataBoundConstructor public Named(@CheckForNull String name, @CheckForNull BranchProperty[] props)
name
- the names to match.props
- the properties that the matching branches will get.@NonNull public List<BranchProperty> getProps()
@NonNull public String getName()
public boolean isMatch(@NonNull jenkins.scm.api.SCMHead head)
true
if the head is a match.head
- the head.true
if the head is a match.public static boolean isMatch(String branchName, String names)
true
if and only if the branch name matches one of the name(s).branchName
- the branch name.names
- the name(s) that are valid to match against.true
if and only if the branch name matches one of the name(s).Copyright © 2016–2017. All rights reserved.