Package hudson.plugins.groovy
Class ScriptSource
- java.lang.Object
-
- hudson.plugins.groovy.ScriptSource
-
- All Implemented Interfaces:
Describable<ScriptSource>
- Direct Known Subclasses:
FileScriptSource
,StringScriptSource
public abstract class ScriptSource extends Object implements Describable<ScriptSource>
Base interface forGroovy
script sources.- Author:
- dvrzalik
-
-
Constructor Summary
Constructors Constructor Description ScriptSource()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorExtensionList<ScriptSource,Descriptor<ScriptSource>>
all()
Descriptor<ScriptSource>
getDescriptor()
FilePath
getScriptFile(FilePath projectWorkspace)
Deprecated.Unused.abstract FilePath
getScriptFile(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener)
Able to load script when script path contains parametersInputStream
getScriptStream(FilePath projectWorkspace)
Deprecated.UnusedInputStream
getScriptStream(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener)
Deprecated.Unused.
-
-
-
Method Detail
-
getScriptFile
public abstract FilePath getScriptFile(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener) throws IOException, InterruptedException
Able 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:
IOException
InterruptedException
-
getScriptStream
@Deprecated public InputStream getScriptStream(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener) throws IOException, InterruptedException
Deprecated.Unused.- Returns:
- Stream containing the script, able to load script when script path contains parameters
- Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
getScriptStream
@Deprecated public InputStream getScriptStream(FilePath projectWorkspace) throws IOException, InterruptedException
Deprecated.Unused- Throws:
IOException
InterruptedException
-
getDescriptor
public Descriptor<ScriptSource> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<ScriptSource>
-
all
public static final DescriptorExtensionList<ScriptSource,Descriptor<ScriptSource>> all()
-
-