Class FileLoaderDSL

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class FileLoaderDSL
    extends GroovyFileGlobalVariable
    Provides a "fileLoader" global variable. This variable allows to load Pipeline objects from remote locations (e.g. Git repositories).
    Author:
    Oleg Nenashev
    • Constructor Detail

      • FileLoaderDSL

        public FileLoaderDSL()
    • Method Detail

      • getName

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

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static String getSampleSnippet​(String name)
                                       throws IOException
        Loads a snippet from the resource file.
        Parameters:
        name - Name of the snippet (e.g. "loadMultipleFiles")
        Returns:
        Workflow script text
        Throws:
        IOException - Loading error