Package org.reviewboard.rbjenkins.config
Class ReviewBoardServerConfiguration
java.lang.Object
hudson.model.AbstractDescribableImpl<ReviewBoardServerConfiguration>
org.reviewboard.rbjenkins.config.ReviewBoardServerConfiguration
- All Implemented Interfaces:
Describable<ReviewBoardServerConfiguration>
public class ReviewBoardServerConfiguration
extends AbstractDescribableImpl<ReviewBoardServerConfiguration>
Stores configuration details for a Review Board server.
-
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. -
Constructor Summary
ConstructorsConstructorDescriptionReviewBoardServerConfiguration(String reviewBoardURL, String credentialsId) Constructs the server configuration with the given name, Review Board URL and API token. -
Method Summary
Modifier and TypeMethodDescriptionReturns the credentials ID, which is used to store the API token.Fetch the Review Board API token from the credential provider.Returns the Review Board endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
ReviewBoardServerConfiguration
@DataBoundConstructor public ReviewBoardServerConfiguration(String reviewBoardURL, String credentialsId) Constructs the server configuration with the given name, Review Board URL and API token.- Parameters:
reviewBoardURL- Review Board server URLcredentialsId- Credentials identifier
-
-
Method Details
-
getReviewBoardURL
Returns the Review Board endpoint. This is required for Jenkins to display the endpoint details in the GUI.- Returns:
- Review Board endpoint
-
getCredentialsId
Returns the credentials ID, which is used to store the API token.- Returns:
- Credentials ID
-
getReviewBoardAPIToken
Fetch the Review Board API token from the credential provider.- Returns:
- The API token, or "UNKNOWN" if not found.
-