Class 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 Detail

      • 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
      • 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