Class EnvActionImpl.Binder
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- EnvActionImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
ALL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Defines the name of the variable.Gets or creates the singleton value of the variable.Methods inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
byName, forJob, forRun
-
Constructor Details
-
Binder
public Binder()
-
-
Method Details
-
getName
Description copied from class:GlobalVariable
Defines the name of the variable.- Specified by:
getName
in classGlobalVariable
- Returns:
- a Java identifier
-
getValue
Description copied from class:GlobalVariable
Gets or creates the singleton value of the variable. If the object is stateful, and the state should not be managed externally (such as with aRunAction2
), then the implementation is responsible for saving it in theScript.getBinding()
.- Specified by:
getValue
in classGlobalVariable
- Parameters:
script
- the script we are running- Returns:
- a POJO or
GroovyObject
- Throws:
Exception
- if there was any problem creating it (will be thrown up to the script)- See Also:
-
getEnvironmentContributors
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public Collection<EnvironmentContributor> getEnvironmentContributors()
-