Package org.reviewboard.rbjenkins.common
Class ReviewBoardUtils
- java.lang.Object
-
- org.reviewboard.rbjenkins.common.ReviewBoardUtils
-
public class ReviewBoardUtils extends Object
Contains common utility functions.
-
-
Constructor Summary
Constructors Constructor Description ReviewBoardUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReviewRequest
parseReviewRequestFromParameters(List<ParametersAction> actions)
Parse the review request details from the build parameters.static void
updateStatusUpdate(ReviewRequest reviewRequest, ReviewRequest.StatusUpdateState state, String description, String url, String urlText)
Updates a status update on a review request.
-
-
-
Method Detail
-
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:
IOException
ReviewBoardException
-
-