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(StaplerRequest2, JSONObject) 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
Nested ClassesModifier and TypeClassDescriptionstatic final classDescriptor forSbtPluginBuilder.static final classstatic classAutomatic Sbt installer from scala-sbt.orgNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanperform(AbstractBuild build, Launcher launcher, BuildListener listener) Perform the sbt build.Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods 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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-