@ExportedBean public class EnvActionImpl extends groovy.lang.GroovyObjectSupport implements org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides, Serializable, RunAction2
Modifier and Type | Class and Description |
---|---|
static class |
EnvActionImpl.Binder |
static class |
EnvActionImpl.Copier |
Modifier and Type | Method and 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) |
public EnvVars getEnvironment() throws IOException, InterruptedException
getEnvironment
in interface org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
IOException
InterruptedException
@Exported(name="environment") public Map<String,String> getOverriddenEnvironment()
getOverriddenEnvironment
in interface org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction.IncludingOverrides
public String getProperty(String propertyName)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.GroovyObjectSupport
public void setProperty(String propertyName, Object newValue)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class groovy.lang.GroovyObjectSupport
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public void onAttached(Run<?,?> r)
onAttached
in interface RunAction2
public void onLoad(Run<?,?> r)
onLoad
in interface RunAction2
@Nonnull public static EnvActionImpl forRun(@Nonnull Run<?,?> run) throws IOException
IOException
Copyright © 2016–2020. All rights reserved.