Class BranchConditional
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<S>
org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<BranchConditional>
org.jenkinsci.plugins.pipeline.modeldefinition.when.impl.BranchConditional
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchConditional>
,Serializable
public class BranchConditional
extends org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<BranchConditional>
Stage condition based on the current branch. i.e. the env var BRANCH_NAME.
As populated by
BranchNameContributor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
branchMatches
(String toCompare, String actualBranch) TheComparator
to use.Deprecated.protected Object
void
setComparator
(String comparator) Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional
getChildren, getDescriptor
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable
getScript
-
Constructor Details
-
BranchConditional
-
-
Method Details
-
getCompare
Deprecated. -
getPattern
-
readResolve
- Throws:
IOException
-
getComparator
TheComparator
to use. Default isComparator.GLOB
- Returns:
- the name of the comparator or null if default.
-
setComparator
-
branchMatches
-