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.
  • 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 URL
      credentialsId - Credentials identifier
  • Method Details

    • getReviewBoardURL

      public String getReviewBoardURL()
      Returns the Review Board endpoint. This is required for Jenkins to display the endpoint details in the GUI.
      Returns:
      Review Board endpoint
    • getCredentialsId

      public String getCredentialsId()
      Returns the credentials ID, which is used to store the API token.
      Returns:
      Credentials ID
    • getReviewBoardAPIToken

      public String getReviewBoardAPIToken()
      Fetch the Review Board API token from the credential provider.
      Returns:
      The API token, or "UNKNOWN" if not found.