@Extension public class ParamsVariable extends GlobalVariable
ParametersAction
.ExtensionPoint.LegacyInstancesAreScopedToHudson
ALL
Constructor and Description |
---|
ParamsVariable() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Defines the name of the variable.
|
Object |
getValue(CpsScript script)
Gets or creates the singleton value of the variable.
|
byName, forJob, forRun
public String getName()
GlobalVariable
getName
in class GlobalVariable
public Object 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)
Copyright © 2016–2020. All rights reserved.