Class EnvActionImpl

java.lang.Object
groovy.lang.GroovyObjectSupport
org.jenkinsci.plugins.workflow.cps.EnvActionImpl
All Implemented Interfaces:
groovy.lang.GroovyObject, Action, ModelObject, RunAction2, org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction, org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides

@ExportedBean public class EnvActionImpl extends groovy.lang.GroovyObjectSupport implements org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides, RunAction2
  • Method Details

    • getEnvironment

      public EnvVars getEnvironment() throws IOException, InterruptedException
      Specified by:
      getEnvironment in interface org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
      Throws:
      IOException
      InterruptedException
    • getOverriddenEnvironment

      @Exported(name="environment") public Map<String,String> getOverriddenEnvironment()
      Specified by:
      getOverriddenEnvironment in interface org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides
    • getProperty

      public String getProperty(String propertyName)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
      Overrides:
      getProperty in class groovy.lang.GroovyObjectSupport
    • setProperty

      public void setProperty(String propertyName, Object newValue)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class groovy.lang.GroovyObjectSupport
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • onAttached

      public void onAttached(Run<?,?> r)
      Specified by:
      onAttached in interface RunAction2
    • onLoad

      public void onLoad(Run<?,?> r)
      Specified by:
      onLoad in interface RunAction2
    • forRun

      @NonNull public static EnvActionImpl forRun(@NonNull Run<?,?> run) throws IOException
      Gets the singleton instance for a given build, creating it on demand.
      Throws:
      IOException