Package org.jenkinsci.lib.envinject
Class EnvInjectAction
java.lang.Object
org.jenkinsci.lib.envinject.EnvInjectAction
- All Implemented Interfaces:
hudson.model.Action,hudson.model.ModelObject,jenkins.model.RunAction2,org.kohsuke.stapler.StaplerProxy
public class EnvInjectAction
extends Object
implements jenkins.model.RunAction2, org.kohsuke.stapler.StaplerProxy
- Author:
- Gregory Boissinot
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnvInjectAction(hudson.model.AbstractBuild build, Map<String, String> envMap) Deprecated.EnvInjectAction(Map<String, String> envMap) Constructs action for the specified environment variables. -
Method Summary
Modifier and TypeMethodDescriptionhudson.model.Run<?,?> getOwner()Retrieves an ownerRunof this action.voidonAttached(hudson.model.Run<?, ?> run) voidonLoad(hudson.model.Run<?, ?> run) voidoverrideAll(Map<String, String> all) voidprotected Object
-
Field Details
-
URL_NAME
- See Also:
-
envMap
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull protected transient Map<String,String> envMapLocal cache of environment variables. This cache may be null if the loading has never been performed. UsegetEnvMap()in external API
-
-
Constructor Details
-
EnvInjectAction
@Deprecated public EnvInjectAction(@NonNull hudson.model.AbstractBuild build, @CheckForNull Map<String, String> envMap) Deprecated.The action implementsRunAction2now, hence passing build is not required anymore. UseEnvInjectAction(java.util.Map).Constructs action for the specified environment variables.- Parameters:
build- BuildenvMap- Environment Map
-
EnvInjectAction
Constructs action for the specified environment variables.- Parameters:
envMap- Environment Map- Since:
- 0.25
-
-
Method Details
-
onAttached
public void onAttached(hudson.model.Run<?, ?> run) - Specified by:
onAttachedin interfacejenkins.model.RunAction2
-
onLoad
public void onLoad(hudson.model.Run<?, ?> run) - Specified by:
onLoadin interfacejenkins.model.RunAction2
-
overrideAll
-
overrideAll
-
getEnvMap
-
getIconFileName
- Specified by:
getIconFileNamein interfacehudson.model.Action
-
getDisplayName
- Specified by:
getDisplayNamein interfacehudson.model.Action- Specified by:
getDisplayNamein interfacehudson.model.ModelObject
-
getUrlName
- Specified by:
getUrlNamein interfacehudson.model.Action
-
writeReplace
- Throws:
ObjectStreamException
-
getOwner
@CheckForNull public hudson.model.Run<?,?> getOwner()Retrieves an ownerRunof this action.- Returns:
Run, which contains the action. May benullif and only if the action is not attached to the run.- Since:
- TODO
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
getSensibleVariables
-
RunAction2now, hence passing build is not required anymore.