Class UserDefinedGlobalVariableList

  • All Implemented Interfaces:
    ExtensionPoint, Iterable<org.jenkinsci.plugins.workflow.cps.GlobalVariable>

    @Extension
    public class UserDefinedGlobalVariableList
    extends org.jenkinsci.plugins.workflow.cps.GlobalVariableSet
    Keeps UserDefinedGlobalVariables in ExtensionList up-to-date from $JENKINS_HOME/workflow-libs/vars/*.groovy.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • UserDefinedGlobalVariableList

        public UserDefinedGlobalVariableList()
    • Method Detail

      • rebuild

        public void rebuild()
        Rebuilds the list of UserDefinedGlobalVariables and update ExtensionList accordingly.
      • forRun

        public Collection<org.jenkinsci.plugins.workflow.cps.GlobalVariable> forRun​(Run<?,​?> run)
        Overrides:
        forRun in class org.jenkinsci.plugins.workflow.cps.GlobalVariableSet