Interface EnvironmentAction
-
- All Superinterfaces:
Action
,ModelObject
- All Known Subinterfaces:
EnvironmentAction.IncludingOverrides
public interface EnvironmentAction extends Action
A run action which reports environment variables. If present, will be used fromDefaultStepContext.get(java.lang.Class<T>)
onEnvVars
after amendment byEnvironmentExpander.getEffectiveEnvironment(hudson.EnvVars, hudson.EnvVars, org.jenkinsci.plugins.workflow.steps.EnvironmentExpander)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EnvironmentAction.IncludingOverrides
Optional extension interface that allows the overrides to be distinguished.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnvVars
getEnvironment()
Gets the complete global environment for a build, including bothRun.getEnvironment(TaskListener)
and anyEnvironmentAction.IncludingOverrides.getOverriddenEnvironment()
.-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
getEnvironment
EnvVars getEnvironment() throws IOException, InterruptedException
Gets the complete global environment for a build, including bothRun.getEnvironment(TaskListener)
and anyEnvironmentAction.IncludingOverrides.getOverriddenEnvironment()
.- Throws:
IOException
InterruptedException
-
-