@ExportedBean public class BranchSpec extends hudson.model.AbstractDescribableImpl<BranchSpec> implements Serializable
master origin/master origin/* origin/*/thing
| Modifier and Type | Class and Description |
|---|---|
static class |
BranchSpec.DescriptorImpl |
| Constructor and Description |
|---|
BranchSpec(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
filterMatching(Collection<String> branches)
Deprecated.
use filterMatching(Collection
|
List<String> |
filterMatching(Collection<String> branches,
hudson.EnvVars env) |
List<hudson.plugins.git.Branch> |
filterMatchingBranches(Collection<hudson.plugins.git.Branch> branches) |
List<hudson.plugins.git.Branch> |
filterMatchingBranches(Collection<hudson.plugins.git.Branch> branches,
hudson.EnvVars env) |
String |
getName() |
boolean |
matches(String item) |
boolean |
matches(String ref,
hudson.EnvVars env)
Compare a git branch reference to configured pattern.
|
void |
setName(String name) |
String |
toString() |
@DataBoundConstructor public BranchSpec(String name)
@Exported public String getName()
public void setName(String name)
public boolean matches(String item)
public boolean matches(String ref, hudson.EnvVars env)
reference uses normalized format `ref/(heads|tags)/xx` pattern do support
public List<String> filterMatching(Collection<String> branches)
public List<String> filterMatching(Collection<String> branches, hudson.EnvVars env)
public List<hudson.plugins.git.Branch> filterMatchingBranches(Collection<hudson.plugins.git.Branch> branches)
public List<hudson.plugins.git.Branch> filterMatchingBranches(Collection<hudson.plugins.git.Branch> branches, hudson.EnvVars env)
Copyright © 2004-2015. All Rights Reserved.