org.hudsonci.maven.plugin.builder
Class MavenBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.hudsonci.maven.plugin.builder.MavenBuilder
- All Implemented Interfaces:
- ExtensionPoint, Describable<Builder>, BuildStep
public class MavenBuilder
- extends Builder
Hudson Maven Builder.
WARNING: for Builds (which includes multi-configuration builds) the
same Builder instance is used for all executions. Hence do not store state
in the builder if it's specific to an execution. Instead use the BuildStateRecord
or BuildStateDTO created in perform(AbstractBuild, Launcher, BuildListener)
by passing it to the necessary objects. In the future we may use a ThreadLocal
or some other context during the life of a build execution.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenBuilder
public MavenBuilder(BuildConfigurationDTO config)
setSecurity
@Inject
public void setSecurity(SecurityService security)
setNodes
@Inject
public void setNodes(NodeService nodes)
getNodes
public NodeService getNodes()
getDescriptor
public MavenBuilderDescriptor getDescriptor()
- Specified by:
getDescriptor in interface Describable<Builder>- Overrides:
getDescriptor in class Builder
getConfig
@JellyAccessible
public BuildConfigurationDTO getConfig()
getMavenInstallation
public MavenInstallation getMavenInstallation()
getDocument
public DocumentDTO getDocument(String id)
perform
public boolean perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
throws InterruptedException,
IOException
- Specified by:
perform in interface BuildStep- Overrides:
perform in class BuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
Copyright © 2004-2011 Hudson. All Rights Reserved.