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
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 ClassesModifier and TypeClassDescriptionstatic final classProvides 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.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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
ConstructorsConstructorDescriptionReviewBoardSetup(boolean downloadOnly, boolean installRBTools) Constructs the setup step. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidperform(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, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
ReviewBoardSetup
@DataBoundConstructor public ReviewBoardSetup(boolean downloadOnly, boolean installRBTools) Constructs the setup step.
-
-
Method Details
-
getDownloadOnly
public boolean getDownloadOnly() -
getInstallRBTools
public boolean getInstallRBTools() -
perform
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionThis 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:
performin interfaceSimpleBuildStep- Parameters:
run- Current buildworkspace- Active workspacelauncher- Process launcherlistener- Logger- Throws:
InterruptedExceptionIOException
-