Class GitHubPullRequestCheckRunCause
java.lang.Object
hudson.model.Cause
com.adobe.jenkins.github_pr_comment_build.GitHubPullRequestCheckRunCause
- All Implemented Interfaces:
Serializable
Cause for a build triggered by a completed GitHub check run on a pull request.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause -
Constructor Summary
ConstructorsConstructorDescriptionGitHubPullRequestCheckRunCause(String checkRunName, String conclusion, String pullRequestUrl) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the GitHub check run for this cause.Retrieves the conclusion of the GitHub check run for this cause.Retrieves the URL for the GitHub pull request for this cause.
-
Constructor Details
-
GitHubPullRequestCheckRunCause
public GitHubPullRequestCheckRunCause(String checkRunName, String conclusion, String pullRequestUrl) Constructor.- Parameters:
checkRunName- the name of the GitHub check runconclusion- 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
- Specified by:
getShortDescriptionin classCause
-
getCheckRunName
Retrieves the name of the GitHub check run for this cause.- Returns:
- the name of the GitHub check run
-
getConclusion
Retrieves the conclusion of the GitHub check run for this cause.- Returns:
- the conclusion of the GitHub check run
-
getPullRequestUrl
Retrieves the URL for the GitHub pull request for this cause.- Returns:
- the URL for the GitHub pull request
-