Package hudson.plugins.groovy
Class Groovy
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.plugins.groovy.AbstractGroovy
-
- hudson.plugins.groovy.Groovy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
public class Groovy extends AbstractGroovy
A Builder for Groovy scripts.- Author:
- dvrzalik, vjuranek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Groovy.BuilderType
static class
Groovy.DescriptorImpl
static class
Groovy.GroovyInstallation
-
Nested classes/interfaces inherited from class hudson.plugins.groovy.AbstractGroovy
AbstractGroovy.AbstractGroovyDescriptor
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected List<String>
buildCommandLine(AbstractBuild<?,?> build, BuildListener listener, FilePath script, boolean isOnUnix)
String
getClassPath()
String
getCommand()
Deprecated.protected GroovyInstallation
getGroovy()
String
getGroovyName()
String
getJavaOpts()
String
getParameters()
String
getProperties()
String
getScriptFile()
Deprecated.String
getScriptParameters()
ScriptSource
getScriptSource()
Groovy.BuilderType
getType()
Deprecated.boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.plugins.groovy.AbstractGroovy
parseProperties
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Method Detail
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getGroovy
protected GroovyInstallation getGroovy()
-
buildCommandLine
protected List<String> buildCommandLine(AbstractBuild<?,?> build, BuildListener listener, FilePath script, boolean isOnUnix) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getScriptSource
public ScriptSource getScriptSource()
-
getCommand
@Deprecated public String getCommand()
Deprecated.
-
getScriptFile
@Deprecated public String getScriptFile()
Deprecated.
-
getGroovyName
public String getGroovyName()
-
getType
@Deprecated public Groovy.BuilderType getType()
Deprecated.
-
getParameters
public String getParameters()
-
getScriptParameters
public String getScriptParameters()
-
getProperties
public String getProperties()
-
getJavaOpts
public String getJavaOpts()
-
getClassPath
public String getClassPath()
-
-