public abstract class GitHubChecksContext extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GitHubChecksContext(Job<?,?> job,
String url,
SCMFacade scmFacade) |
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials |
getCredentials()
Returns the credentials to access the remote GitHub repository.
|
protected abstract String |
getCredentialsId() |
protected org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials |
getGitHubAppCredentials(String credentialsId) |
abstract String |
getHeadSha()
Returns the commit sha of the run.
|
Optional<Long> |
getId(String name)
Returns the id of a
GitHubChecksAction for this run, if any. |
protected Job<?,?> |
getJob() |
abstract String |
getRepository()
Returns the source repository's full name of the run.
|
protected abstract Optional<Run<?,?>> |
getRun() |
protected SCMFacade |
getScmFacade() |
String |
getURL()
Returns the URL of the run's summary page, e.g.
|
protected boolean |
hasCredentialsId() |
protected boolean |
hasGitHubAppCredentials() |
protected boolean |
hasValidCredentials(edu.hm.hafner.util.FilteredLog logger) |
abstract boolean |
isValid(edu.hm.hafner.util.FilteredLog logger)
Returns whether the context is valid (with all properties functional) to use.
|
public abstract String getHeadSha()
public abstract String getRepository()
public abstract boolean isValid(edu.hm.hafner.util.FilteredLog logger)
logger - the filtered logger@CheckForNull protected abstract String getCredentialsId()
public org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials getCredentials()
public String getURL()
protected Job<?,?> getJob()
protected final SCMFacade getScmFacade()
protected org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials getGitHubAppCredentials(String credentialsId)
protected boolean hasGitHubAppCredentials()
protected boolean hasCredentialsId()
protected boolean hasValidCredentials(edu.hm.hafner.util.FilteredLog logger)
public Optional<Long> getId(String name)
GitHubChecksAction for this run, if any.name - the name of the checkCopyright © 2016–2022. All rights reserved.