hudson.plugins.groovy
Class Groovy

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.plugins.groovy.AbstractGroovy
              extended by hudson.plugins.groovy.Groovy
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class Groovy
extends AbstractGroovy

A Builder for Groovy scripts.

Author:
dvrzalik

Nested Class Summary
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
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static Groovy.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from class hudson.plugins.groovy.AbstractGroovy
scriptSource
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
Groovy(ScriptSource scriptSource, java.lang.String groovyName, java.lang.String parameters, java.lang.String scriptParameters, java.lang.String properties)
           
 
Method Summary
protected  java.lang.String[] buildCommandLine(hudson.FilePath script)
           
 java.lang.String getCommand()
           
 hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
           
protected  Groovy.GroovyInstallation getGroovy()
           
 java.lang.String getGroovyName()
           
 java.lang.String getParameters()
           
 java.lang.String getProperties()
           
 java.lang.String getScriptFile()
           
 java.lang.String getScriptParameters()
           
 Groovy.BuilderType getType()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.plugins.groovy.AbstractGroovy
getScriptSource, parseProperties
 
Methods inherited from class hudson.tasks.Builder
getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, prebuild
 

Field Detail

DESCRIPTOR

public static final Groovy.DescriptorImpl DESCRIPTOR
Constructor Detail

Groovy

public Groovy(ScriptSource scriptSource,
              java.lang.String groovyName,
              java.lang.String parameters,
              java.lang.String scriptParameters,
              java.lang.String properties)
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

getDescriptor

public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()

getGroovy

protected Groovy.GroovyInstallation getGroovy()

buildCommandLine

protected java.lang.String[] buildCommandLine(hudson.FilePath script)
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

getCommand

public java.lang.String getCommand()

getScriptFile

public java.lang.String getScriptFile()

getGroovyName

public java.lang.String getGroovyName()

getType

public Groovy.BuilderType getType()

getParameters

public java.lang.String getParameters()

getScriptParameters

public java.lang.String getScriptParameters()

getProperties

public java.lang.String getProperties()


Copyright © 2008. All Rights Reserved.