Class 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 Detail

      • UserDefinedGlobalVariable

        public UserDefinedGlobalVariable​(String name,
                                         File help)
    • Method Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object