hudson.plugins.groovy
Class SystemGroovy

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

public class SystemGroovy
extends AbstractGroovy

A Builder which executes system Groovy script in Hudson JVM (similar to HUDSON_URL/script).

Author:
dvrzalik

Nested Class Summary
static class SystemGroovy.BuilderType
           
static class SystemGroovy.DescriptorImpl
           
 
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 SystemGroovy.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from class hudson.plugins.groovy.AbstractGroovy
scriptSource
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
SystemGroovy(ScriptSource scriptSource, java.lang.String bindings, java.lang.String classpath)
           
 
Method Summary
 java.lang.String getBindings()
           
 java.lang.String getClasspath()
           
 java.lang.String getCommand()
           
 hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
           
 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 SystemGroovy.DescriptorImpl DESCRIPTOR
Constructor Detail

SystemGroovy

@DataBoundConstructor
public SystemGroovy(ScriptSource scriptSource,
                                         java.lang.String bindings,
                                         java.lang.String classpath)
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()

getCommand

public java.lang.String getCommand()

getBindings

public java.lang.String getBindings()

getClasspath

public java.lang.String getClasspath()


Copyright © 2008. All Rights Reserved.