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 example checkout scm.
See Also:
  • Constructor Details

    • ChangeSetConditional

      @DataBoundConstructor public ChangeSetConditional(String pattern)
  • Method Details

    • getGlob

      @Deprecated public String getGlob()
      Deprecated.
    • isCaseSensitive

      public boolean isCaseSensitive()
    • getPattern

      public String getPattern()
    • getComparator

      public String getComparator()
      The Comparator to use. Default is Comparator.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)