public class EnvInjectAction extends Object implements jenkins.model.RunAction2, org.kohsuke.stapler.StaplerProxy
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
envMap
Local cache of environment variables.
|
static String |
URL_NAME |
| Constructor and Description |
|---|
EnvInjectAction(hudson.model.AbstractBuild build,
Map<String,String> envMap)
Deprecated.
The action implements
RunAction2 now, hence passing build is not required anymore.
Use EnvInjectAction(java.util.Map). |
EnvInjectAction(Map<String,String> envMap)
Constructs action for the specified environment variables.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
Map<String,String> |
getEnvMap() |
String |
getIconFileName() |
hudson.model.Run<?,?> |
getOwner()
Retrieves an owner
Run of this action. |
Set<String> |
getSensibleVariables() |
Object |
getTarget() |
String |
getUrlName() |
void |
onAttached(hudson.model.Run<?,?> run) |
void |
onLoad(hudson.model.Run<?,?> run) |
void |
overrideAll(Map<String,String> all) |
void |
overrideAll(Set<String> sensibleVariables,
Map<String,String> all) |
public static final String URL_NAME
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull protected transient Map<String,String> envMap
getEnvMap() in external API@Deprecated public EnvInjectAction(@Nonnull hudson.model.AbstractBuild build, @CheckForNull Map<String,String> envMap)
RunAction2 now, hence passing build is not required anymore.
Use EnvInjectAction(java.util.Map).build - BuildenvMap - Environment Mappublic EnvInjectAction(@CheckForNull Map<String,String> envMap)
envMap - Environment Mappublic void onAttached(hudson.model.Run<?,?> run)
onAttached in interface jenkins.model.RunAction2public void onLoad(hudson.model.Run<?,?> run)
onLoad in interface jenkins.model.RunAction2public void overrideAll(@CheckForNull Set<String> sensibleVariables, @CheckForNull Map<String,String> all)
@CheckForNull public Map<String,String> getEnvMap()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Action@CheckForNull public hudson.model.Run<?,?> getOwner()
Run of this action.Run, which contains the action.
May be null if and only if the action is not attached to the run.public Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxy@CheckForNull public Set<String> getSensibleVariables()
Copyright © 2004–2017. All rights reserved.