Package org.jvnet.hudson.plugins
Class SbtPluginBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- org.jvnet.hudson.plugins.SbtPluginBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
public class SbtPluginBuilder extends Builder
sbt pluginBuilder
. When the user configures the project and enables this builder,Descriptor.newInstance(StaplerRequest)
is invoked and a newSbtPluginBuilder
is created. The created instance is persisted to the project configuration XML by using XStream, so this allows you to use instance fields (likename
) to remember the configuration. When a build is performed, theperform(AbstractBuild, Launcher, BuildListener)
method will be invoked.- Author:
- Uzi Landsmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SbtPluginBuilder.DescriptorImpl
Descriptor forSbtPluginBuilder
.static class
SbtPluginBuilder.SbtInstallation
static class
SbtPluginBuilder.SbtInstaller
Automatic Sbt installer from scala-sbt.org-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOGGER
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActions()
SbtPluginBuilder.DescriptorImpl
getDescriptor()
String
getJvmFlags()
String
getName()
String
getSbtFlags()
String
getSubdirPath()
boolean
perform(AbstractBuild build, Launcher launcher, BuildListener listener)
Perform the sbt build.-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Method Detail
-
getName
public String getName()
-
getJvmFlags
public String getJvmFlags()
-
getSbtFlags
public String getSbtFlags()
-
getActions
public String getActions()
-
getSubdirPath
public String getSubdirPath()
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener)
Perform the sbt build. Interpret the command arguments and create a command line, then run it.- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
-
getDescriptor
public SbtPluginBuilder.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
-