public class LedBorgPublisher
extends hudson.tasks.Notifier
implements jenkins.tasks.SimpleBuildStep
Builder.
When the user configures the project and enables this builder, Descriptor.newInstance(StaplerRequest) is
invoked and a new LedBorgPublisher 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.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
LedBorgPublisher.DescriptorImpl
Add the descriptor class extension point
|
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
LedBorgPublisher(String failureState,
String successState,
String unstableState,
String notBuiltState,
String abortedState) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbortedState() |
LedBorgPublisher.DescriptorImpl |
getDescriptor()
Get the associated descriptor object
|
String |
getFailureState() |
String |
getNotBuiltState() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Get the build step monitor.
|
String |
getSuccessState() |
String |
getUnstableState() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Perform actions associated with the build step.
|
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildpublic String getFailureState()
public String getSuccessState()
public String getUnstableState()
public String getNotBuiltState()
public String getAbortedState()
public LedBorgPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException,
IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionCopyright © 2016–2017. All rights reserved.