public class FailFastBuilder extends Builder
BuildStepRunner
.
Run build steps, but stops execution immediately when any of them fail.ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
BUILDERS, PUBLISHERS
Constructor and Description |
---|
FailFastBuilder(List<BuildStep> buildsteps) |
Modifier and Type | Method and Description |
---|---|
Descriptor<Builder> |
getDescriptor() |
Action |
getProjectAction(AbstractProject<?,?> project)
Deprecated.
|
Collection<? extends Action> |
getProjectActions(AbstractProject<?,?> project) |
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
Run
BuildStep.prebuild(AbstractBuild, BuildListener) of all build steps. |
boolean |
prebuild(AbstractBuild<?,?> build,
BuildListener listener)
Run
BuildStep.prebuild(AbstractBuild, BuildListener) of all build steps. |
getProjectAction, perform
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
BuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.
Doesn't run following build steps when a build step fails.prebuild
in interface BuildStep
prebuild
in class BuildStepCompatibilityLayer
build
- listener
- BuildStep.prebuild(hudson.model.AbstractBuild, hudson.model.BuildListener)
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
BuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.
Runs following build steps even when a build step fails.perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
build
- launcher
- listener
- InterruptedException
IOException
BuildStep.perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)
public Descriptor<Builder> getDescriptor()
getDescriptor
in interface Describable<Builder>
getDescriptor
in class Builder
public Action getProjectAction(AbstractProject<?,?> project)
getProjectAction
in interface BuildStep
getProjectAction
in class BuildStepCompatibilityLayer
project
- BuildStep.getProjectAction(hudson.model.AbstractProject)
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
getProjectActions
in interface BuildStep
getProjectActions
in class BuildStepCompatibilityLayer
project
- BuildStep.getProjectActions(hudson.model.AbstractProject)
public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
getRequiredMonitorService
in class Builder
BuildStep.getRequiredMonitorService()
Copyright © 2016–2021. All rights reserved.