Class FileLoaderDSL
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.cps.GlobalVariable
-
- org.jenkinsci.plugins.workflow.remoteloader.GroovyFileGlobalVariable
-
- org.jenkinsci.plugins.workflow.remoteloader.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FileLoaderDSL()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static String
getSampleSnippet(String name)
Loads a snippet from the resource file.-
Methods inherited from class org.jenkinsci.plugins.workflow.remoteloader.GroovyFileGlobalVariable
getClassName, getValue
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in classorg.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
-
-