Package org.reviewboard.rbjenkins.steps
Class ReviewBoardSetup
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- org.reviewboard.rbjenkins.steps.ReviewBoardSetup
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class ReviewBoardSetup extends Builder implements SimpleBuildStep
Creates a build step in Jenkins which will install and use rbtools to apply the patch from Review Board for the given review request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReviewBoardSetup.DescriptorImpl
Provides the description of the setup build step and validation functions for fields in its form.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description ReviewBoardSetup(boolean downloadOnly, boolean installRBTools)
Constructs the setup step.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDownloadOnly()
boolean
getInstallRBTools()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
This function is called as part of a build when the setup step has been added.-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
getDownloadOnly
public boolean getDownloadOnly()
-
getInstallRBTools
public boolean getInstallRBTools()
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
This function is called as part of a build when the setup step has been added. This will install rbtools and then use it to apply the patch for the given review request, as specified in the build parameters.- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- Current buildworkspace
- Active workspacelauncher
- Process launcherlistener
- Logger- Throws:
InterruptedException
IOException
-
-