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
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
ALL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
byName, forJob, forRun
-
Constructor Details
-
UserDefinedGlobalVariable
-
-
Method Details
-
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
Loads help from user-defined file, if available.- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-