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
  • Constructor Details

    • UserDefinedGlobalVariable

      public UserDefinedGlobalVariable(String name, File help)
  • Method Details

    • getName

      @NonNull public String getName()
      Specified by:
      getName in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
    • getValue

      @NonNull public Object getValue(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript script) throws Exception
      Specified by:
      getValue in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
      Throws:
      Exception
    • getHelpHtml

      @CheckForNull public String getHelpHtml() throws IOException
      Loads help from user-defined file, if available.
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object