Package org.reviewboard.rbjenkins.steps
Class ReviewBoardNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
org.reviewboard.rbjenkins.steps.ReviewBoardNotifier
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Creates a post-build step in Jenkins for notifying Review Board of the
status of the triggered build.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides the description of the notification build step and validation functions for fields in its configuration form.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeclares the synchronization required for this step, for which we require none.voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) This function will be called as part of the post-build step.voidupdateStatusUpdate(ReviewRequest reviewRequest, ReviewRequest.StatusUpdateState state, String description) Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
ReviewBoardNotifier
@DataBoundConstructor public ReviewBoardNotifier()Constructs the notifier.
-
-
Method Details
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOExceptionThis function will be called as part of the post-build step. It will notify Review Board of the status of the build and update the status update resource.- Specified by:
performin interfaceSimpleBuildStep- Parameters:
run- The active Jenkins buildfilePath- The path to the build filelauncher- Process launcherlistener- Logger- Throws:
InterruptedExceptionIOException
-
updateStatusUpdate
public void updateStatusUpdate(ReviewRequest reviewRequest, ReviewRequest.StatusUpdateState state, String description) throws IOException, ReviewBoardException - Throws:
IOExceptionReviewBoardException
-
getRequiredMonitorService
Declares the synchronization required for this step, for which we require none.- Specified by:
getRequiredMonitorServicein interfaceBuildStep- Returns:
- BuildStepMonitor.NONE
-