Class SingleConditionalBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,DependencyDeclarer
public class SingleConditionalBuilder extends Builder implements DependencyDeclarer
- Author:
- Anthony Robinson, Dominik Bartholdi (imod)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleConditionalBuilder.SingleConditionalBuilderDescriptor
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROMOTION_JOB_TYPE
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description SingleConditionalBuilder(BuildStep buildStep, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildDependencyGraph(AbstractProject project, DependencyGraph graph)
BuildStep
getBuildStep()
org.jenkins_ci.plugins.run_condition.RunCondition
getCondition()
Collection
getProjectActions(AbstractProject<?,?> project)
BuildStepMonitor
getRequiredMonitorService()
org.jenkins_ci.plugins.run_condition.BuildStepRunner
getRunner()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
boolean
prebuild(AbstractBuild<?,?> build, BuildListener listener)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, perform
-
-
-
-
Field Detail
-
PROMOTION_JOB_TYPE
public static final String PROMOTION_JOB_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SingleConditionalBuilder
@DataBoundConstructor public SingleConditionalBuilder(BuildStep buildStep, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
-
-
Method Detail
-
getBuildStep
public BuildStep getBuildStep()
-
getCondition
public org.jenkins_ci.plugins.run_condition.RunCondition getCondition()
-
getRunner
public org.jenkins_ci.plugins.run_condition.BuildStepRunner getRunner()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Overrides:
getRequiredMonitorService
in classBuilder
-
getProjectActions
public Collection getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
buildDependencyGraph
public void buildDependencyGraph(AbstractProject project, DependencyGraph graph)
- Specified by:
buildDependencyGraph
in interfaceDependencyDeclarer
-
-