Package hudson.tasks
Class Builder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Direct Known Subclasses:
CommandInterpreter
,Maven
public abstract class Builder extends BuildStepCompatibilityLayer implements Describable<Builder>, ExtensionPoint
BuildStep
s that perform the actual build.To register a custom
Builder
from a plugin, putExtension
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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<Builder,Descriptor<Builder>>
all()
Returns all the registeredBuilder
descriptors.Descriptor<Builder>
getDescriptor()
Gets the descriptor for this instance.BuildStepMonitor
getRequiredMonitorService()
ReturnsBuildStepMonitor.NONE
by default, asBuilder
s 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
-
-
-
-
Method Detail
-
prebuild
public boolean prebuild(Build build, BuildListener listener)
Default implementation that does nothing.- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
ReturnsBuildStepMonitor.NONE
by default, asBuilder
s normally don't depend on its previous result.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getDescriptor
public Descriptor<Builder> getDescriptor()
Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, so ifa.getClass() == b.getClass()
then by defaulta.getDescriptor() == b.getDescriptor()
as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptor
in interfaceDescribable<Builder>
-
all
public static DescriptorExtensionList<Builder,Descriptor<Builder>> all()
Returns all the registeredBuilder
descriptors.
-
-