Package hudson.plugins.groovy
Class FileScriptSource
- java.lang.Object
-
- hudson.plugins.groovy.ScriptSource
-
- hudson.plugins.groovy.FileScriptSource
-
- All Implemented Interfaces:
Describable<ScriptSource>
public class FileScriptSource extends ScriptSource
Groovy source based on given script file.- Author:
- dvrzalik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileScriptSource.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description FileScriptSource(String scriptFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getScriptFile()
FilePath
getScriptFile(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener)
Able to load script when script path contains parametersint
hashCode()
-
Methods inherited from class hudson.plugins.groovy.ScriptSource
all, getDescriptor, getScriptFile, getScriptStream, getScriptStream
-
-
-
-
Constructor Detail
-
FileScriptSource
@DataBoundConstructor public FileScriptSource(String scriptFile)
-
-
Method Detail
-
getScriptFile
public FilePath getScriptFile(FilePath projectWorkspace, AbstractBuild<?,?> build, BuildListener listener) throws IOException, InterruptedException
Description copied from class:ScriptSource
Able to load script when script path contains parameters- Specified by:
getScriptFile
in classScriptSource
- 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
-
getScriptFile
public String getScriptFile()
-
-