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.
  • 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, 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 interface SimpleBuildStep
      Parameters:
      run - Current build
      workspace - Active workspace
      launcher - Process launcher
      listener - Logger
      Throws:
      InterruptedException
      IOException