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
sbt plugin
Builder
.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest)
is invoked and a new
SbtPluginBuilder
is created. The created instance is persisted to the
project configuration XML by using XStream, so this allows you to use
instance fields (like name
) to remember the configuration.
When a build is performed, the
perform(AbstractBuild, Launcher, BuildListener)
method will be
invoked.- Author:
- Uzi Landsmann
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Descriptor forSbtPluginBuilder
.static final class
static class
Automatic Sbt installer from scala-sbt.orgNested 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
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
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 Details
-
LOGGER
-
-
Constructor Details
-
SbtPluginBuilder
-
-
Method Details
-
getName
-
getJvmFlags
-
getSbtFlags
-
getActions
-
getSubdirPath
-
perform
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
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-