Class EnvironmentConditional

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<S>
org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<EnvironmentConditional>
org.jenkinsci.plugins.pipeline.modeldefinition.when.impl.EnvironmentConditional
All Implemented Interfaces:
ExtensionPoint, Describable<EnvironmentConditional>, Serializable

public class EnvironmentConditional extends org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<EnvironmentConditional>
Stage condition based on environment variable equality.
See Also:
  • Constructor Details

    • EnvironmentConditional

      @DataBoundConstructor public EnvironmentConditional(String name, String value)
  • Method Details

    • getName

      public String getName()
    • getValue

      public String getValue()
    • isIgnoreCase

      public boolean isIgnoreCase()
    • setIgnoreCase

      @DataBoundSetter public void setIgnoreCase(boolean ignoreCase)
    • environmentMatches

      public boolean environmentMatches(String v, String var)