Class UserDefinedGlobalVariable
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.cps.GlobalVariable
-
- org.jenkinsci.plugins.workflow.cps.global.UserDefinedGlobalVariable
-
- All Implemented Interfaces:
ExtensionPoint
public class UserDefinedGlobalVariable extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Global variable backed by user-supplied script.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description UserDefinedGlobalVariable(String name, File help)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getHelpHtml()
Loads help from user-defined file, if available.String
getName()
Object
getValue(org.jenkinsci.plugins.workflow.cps.CpsScript script)
int
hashCode()
-
-
-
Method Detail
-
getName
@NonNull public String getName()
- Specified by:
getName
in classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-
getValue
@NonNull public Object getValue(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript script) throws Exception
- Specified by:
getValue
in classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
- Throws:
Exception
-
getHelpHtml
@CheckForNull public String getHelpHtml() throws IOException
Loads help from user-defined file, if available.- Throws:
IOException
-
-