@Extension public static class EnvActionImpl.Binder extends GlobalVariable
ExtensionPoint.LegacyInstancesAreScopedToHudson
ALL
Constructor and Description |
---|
Binder() |
Modifier and Type | Method and Description |
---|---|
Collection<EnvironmentContributor> |
getEnvironmentContributors() |
String |
getName()
Defines the name of the variable.
|
EnvActionImpl |
getValue(CpsScript script)
Gets or creates the singleton value of the variable.
|
byName, forJob, forRun
public String getName()
GlobalVariable
getName
in class GlobalVariable
public EnvActionImpl getValue(CpsScript script) throws Exception
GlobalVariable
RunAction2
),
then the implementation is responsible for saving it in the Script.getBinding()
.getValue
in class GlobalVariable
script
- the script we are runningGroovyObject
Exception
- if there was any problem creating it (will be thrown up to the script)CpsScript.getProperty(java.lang.String)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public Collection<EnvironmentContributor> getEnvironmentContributors()
Copyright © 2016–2020. All rights reserved.