public class SmallTestBuilder
extends hudson.tasks.Notifier
Builder
.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest)
is invoked
and a new SmallTestBuilder
is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields
to remember the configuration.
When a build is performed, the perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)
method will be invoked.
Modifier and Type | Class and Description |
---|---|
static class |
SmallTestBuilder.DescriptorImpl
Descriptor for
SmallTestBuilder . |
hudson.tasks.Publisher.DescriptorExtensionListImpl
Constructor and Description |
---|
SmallTestBuilder(String jiraUrl,
String credentialsId) |
Modifier and Type | Method and Description |
---|---|
String |
getCredentialsId() |
SmallTestBuilder.DescriptorImpl |
getDescriptor() |
String |
getJiraUrl()
We'll use this from the
config.jelly . |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
public String getJiraUrl()
config.jelly
.public String getCredentialsId()
public boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
public SmallTestBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2017. All rights reserved.