Class GroovyFileGlobalVariable

  • All Implemented Interfaces:
    ExtensionPoint
    Direct Known Subclasses:
    FileLoaderDSL

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public abstract class GroovyFileGlobalVariable
    extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
    Implements Global variable, which is implemented via Groovy file. Exclusions should be configured separately using ProxyWhitelist.
    Author:
    Oleg Nenashev
    • Constructor Detail

      • GroovyFileGlobalVariable

        public GroovyFileGlobalVariable()
    • Method Detail

      • getClassName

        @Nonnull
        public String getClassName()
        Canonical name of the class to be loaded.
        Returns:
        Canonical class name
      • getValue

        public final Object getValue​(org.jenkinsci.plugins.workflow.cps.CpsScript script)
                              throws Exception
        Specified by:
        getValue in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
        Throws:
        Exception