Class GitHubPullRequestCheckRunCause

java.lang.Object
hudson.model.Cause
com.adobe.jenkins.github_pr_comment_build.GitHubPullRequestCheckRunCause
All Implemented Interfaces:
Serializable

public final class GitHubPullRequestCheckRunCause extends Cause implements Serializable
Cause for a build triggered by a completed GitHub check run on a pull request.
See Also:
  • Constructor Details

    • GitHubPullRequestCheckRunCause

      public GitHubPullRequestCheckRunCause(String checkRunName, String conclusion, String pullRequestUrl)
      Constructor.
      Parameters:
      checkRunName - the name of the GitHub check run
      conclusion - the conclusion of the GitHub check run (e.g. success, neutral, failure)
      pullRequestUrl - the URL for the pull request the check run belongs to
  • Method Details

    • getShortDescription

      public String getShortDescription()
      Specified by:
      getShortDescription in class Cause
    • getCheckRunName

      @Exported(visibility=3) public String getCheckRunName()
      Retrieves the name of the GitHub check run for this cause.
      Returns:
      the name of the GitHub check run
    • getConclusion

      @Exported(visibility=3) public String getConclusion()
      Retrieves the conclusion of the GitHub check run for this cause.
      Returns:
      the conclusion of the GitHub check run
    • getPullRequestUrl

      @Exported(visibility=3) public String getPullRequestUrl()
      Retrieves the URL for the GitHub pull request for this cause.
      Returns:
      the URL for the GitHub pull request