hudson.tasks
Class Builder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep
Direct Known Subclasses:
Ant, CommandInterpreter, Maven

public abstract class Builder
extends BuildStepCompatibilityLayer
implements BuildStep, Describable<Builder>, ExtensionPoint

BuildSteps that perform the actual build.

To register a custom Builder from a plugin, put Extension on your descriptor.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
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
 
Constructor Summary
Builder()
           
 
Method Summary
static DescriptorExtensionList<Builder,Descriptor<Builder>> all()
          Returns all the registered Builder descriptors.
 Descriptor<Builder> getDescriptor()
          Gets the descriptor for this instance.
 BuildStepMonitor getRequiredMonitorService()
          Returns BuildStepMonitor.NONE by default, as Builders normally don't depend on its previous result.
 boolean prebuild(Build build, BuildListener listener)
          Default implementation that does nothing.
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
 

Constructor Detail

Builder

public Builder()
Method Detail

prebuild

public boolean prebuild(Build build,
                        BuildListener listener)
Default implementation that does nothing.

Overrides:
prebuild in class BuildStepCompatibilityLayer

getRequiredMonitorService

public BuildStepMonitor getRequiredMonitorService()
Returns BuildStepMonitor.NONE by default, as Builders normally don't depend on its previous result.

Specified by:
getRequiredMonitorService in interface BuildStep

getDescriptor

public Descriptor<Builder> getDescriptor()
Description copied from interface: Describable
Gets the descriptor for this instance.

Descriptor is a singleton for every concrete Describable implementation, so if a.getClass()==b.getClass() then a.getDescriptor()==b.getDescriptor() must hold.

Specified by:
getDescriptor in interface Describable<Builder>

all

public static DescriptorExtensionList<Builder,Descriptor<Builder>> all()
Returns all the registered Builder descriptors.



Copyright © 2004-2013 Hudson. All Rights Reserved.