Package org.reviewboard.rbjenkins.common
Class ReviewBoardUtils
java.lang.Object
org.reviewboard.rbjenkins.common.ReviewBoardUtils
Contains common utility functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReviewRequestParse the review request details from the build parameters.static voidupdateStatusUpdate(ReviewRequest reviewRequest, ReviewRequest.StatusUpdateState state, String description, String url, String urlText) Updates a status update on a review request.
-
Constructor Details
-
ReviewBoardUtils
public ReviewBoardUtils()
-
-
Method Details
-
parseReviewRequestFromParameters
public static ReviewRequest parseReviewRequestFromParameters(List<ParametersAction> actions) throws MalformedURLException Parse the review request details from the build parameters.- Parameters:
actions- List of ParametersAction actions from the build- Returns:
- ReviewRequest object
- Throws:
MalformedURLException
-
updateStatusUpdate
public static void updateStatusUpdate(ReviewRequest reviewRequest, ReviewRequest.StatusUpdateState state, String description, String url, String urlText) throws IOException, ReviewBoardException Updates a status update on a review request. This is the resource which displays the status of the build within the Review Board UI.- Parameters:
reviewRequest- Review Requeststate- Status update statedescription- Status update descriptionurl- URL to use for the build linkurlText- Text to use for the build link- Throws:
IOExceptionReviewBoardException
-