Package hudson.plugins.groovy
Class ScriptSource
java.lang.Object
hudson.plugins.groovy.ScriptSource
- All Implemented Interfaces:
Describable<ScriptSource>
- Direct Known Subclasses:
FileScriptSource,StringScriptSource
Base interface for
Groovy script sources.- Author:
- dvrzalik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final DescriptorExtensionList<ScriptSource, Descriptor<ScriptSource>> all()getScriptFile(FilePath projectWorkspace) Deprecated.Unused.abstract FilePathgetScriptFile(FilePath projectWorkspace, AbstractBuild<?, ?> build, BuildListener listener) Able to load script when script path contains parametersgetScriptStream(FilePath projectWorkspace) Deprecated.UnusedgetScriptStream(FilePath projectWorkspace, AbstractBuild<?, ?> build, BuildListener listener) Deprecated.Unused.
-
Constructor Details
-
ScriptSource
public ScriptSource()
-
-
Method Details
-
getScriptFile
public abstract FilePath getScriptFile(FilePath projectWorkspace, AbstractBuild<?, ?> build, BuildListener listener) throws IOException, InterruptedExceptionAble to load script when script path contains parameters- Parameters:
projectWorkspace- Project workspace to create tmp filebuild- - needed to obtain environment variableslistener- - build listener needed by Environment- Returns:
- Path to the executed script file
- Throws:
IOExceptionInterruptedException
-
getScriptStream
@Deprecated public InputStream getScriptStream(FilePath projectWorkspace, AbstractBuild<?, ?> build, BuildListener listener) throws IOException, InterruptedExceptionDeprecated.Unused.- Returns:
- Stream containing the script, able to load script when script path contains parameters
- Throws:
IOExceptionInterruptedException
-
getScriptFile
@Deprecated public FilePath getScriptFile(FilePath projectWorkspace) throws IOException, InterruptedException Deprecated.Unused.In the end, every script is a file...- Parameters:
projectWorkspace- Project workspace (useful when the source has to create temporary file)- Returns:
- Path to the executed script file
- Throws:
IOExceptionInterruptedException
-
getScriptStream
@Deprecated public InputStream getScriptStream(FilePath projectWorkspace) throws IOException, InterruptedException Deprecated.Unused- Throws:
IOExceptionInterruptedException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<ScriptSource>
-
all
-