Class ReviewBoardServerConfiguration

    • Constructor Detail

      • 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 Detail

      • 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.