Class ChangeSetConditional
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<T>
-
- org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<S>
-
- org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<ChangeSetConditional>
-
- org.jenkinsci.plugins.pipeline.modeldefinition.when.impl.ChangeSetConditional
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ChangeSetConditional>
,Serializable
public class ChangeSetConditional extends org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<ChangeSetConditional>
Conditional that checks the affected file paths recorded in the changelog. The build must first have collected the changelog via for examplecheckout scm
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeSetConditional.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ChangeSetConditional(String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
changeSetMatches(ChangeLogSet.Entry change, String pattern, boolean caseSensitive)
String
getComparator()
TheComparator
to use.String
getGlob()
Deprecated.String
getPattern()
boolean
isCaseSensitive()
protected Object
readResolve()
void
setCaseSensitive(boolean caseSensitive)
void
setComparator(String comparator)
-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional
getChildren, getDescriptor
-
-
-
-
Constructor Detail
-
ChangeSetConditional
@DataBoundConstructor public ChangeSetConditional(String pattern)
-
-
Method Detail
-
getGlob
@Deprecated public String getGlob()
Deprecated.
-
isCaseSensitive
public boolean isCaseSensitive()
-
getPattern
public String getPattern()
-
getComparator
public String getComparator()
TheComparator
to use. Default isComparator.GLOB
- Returns:
- the name of the comparator or null if default.
-
readResolve
protected Object readResolve() throws IOException
- Throws:
IOException
-
setComparator
@DataBoundSetter public void setComparator(String comparator)
-
setCaseSensitive
@DataBoundSetter public void setCaseSensitive(boolean caseSensitive)
-
changeSetMatches
public boolean changeSetMatches(ChangeLogSet.Entry change, String pattern, boolean caseSensitive)
-
-