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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnvActionImpl.Binder
static class
EnvActionImpl.Copier
static class
EnvActionImpl.EnvActionImplPickleFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvActionImpl
forRun(Run<?,?> run)
Gets the singleton instance for a given build, creating it on demand.String
getDisplayName()
EnvVars
getEnvironment()
String
getIconFileName()
Map<String,String>
getOverriddenEnvironment()
String
getProperty(String propertyName)
String
getUrlName()
void
onAttached(Run<?,?> r)
void
onLoad(Run<?,?> r)
void
setProperty(String propertyName, Object newValue)
-
-
-
Method Detail
-
getEnvironment
public EnvVars getEnvironment() throws IOException, InterruptedException
- Specified by:
getEnvironment
in interfaceorg.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
- Throws:
IOException
InterruptedException
-
getOverriddenEnvironment
@Exported(name="environment") public Map<String,String> getOverriddenEnvironment()
- Specified by:
getOverriddenEnvironment
in interfaceorg.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides
-
getProperty
public String getProperty(String propertyName)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classgroovy.lang.GroovyObjectSupport
-
setProperty
public void setProperty(String propertyName, Object newValue)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classgroovy.lang.GroovyObjectSupport
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
onAttached
public void onAttached(Run<?,?> r)
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> r)
- Specified by:
onLoad
in interfaceRunAction2
-
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
-
-