public abstract class GiteaChecksContext extends Object
Modifier | Constructor and Description |
---|---|
protected |
GiteaChecksContext(Job<?,?> job,
String url,
SCMFacade scmFacade) |
Modifier and Type | Method and Description |
---|---|
com.cloudbees.plugins.credentials.common.StandardCredentials |
getCredentials()
Returns the credentials to access the remote Gitea repository.
|
protected abstract String |
getCredentialsId() |
protected com.cloudbees.plugins.credentials.common.StandardCredentials |
getGiteaAppCredentials(String credentialsId) |
abstract String |
getGiteaServerUrl()
Returns the source repository's server URL of the run.
|
abstract String |
getHeadSha()
Returns the commit sha of the run.
|
protected Job<?,?> |
getJob() |
abstract String |
getRepo()
Returns the source repository's name of the run.
|
abstract String |
getRepoOwner()
Returns the source repository's owner name of the run, e.g.
|
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 |
hasGiteaAppCredentials() |
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 getRepoOwner()
public abstract String getRepo()
public abstract String getGiteaServerUrl()
public abstract String getRepository()
public abstract boolean isValid(edu.hm.hafner.util.FilteredLog logger)
logger
- the filtered logger@CheckForNull protected abstract String getCredentialsId()
public com.cloudbees.plugins.credentials.common.StandardCredentials getCredentials()
public String getURL()
protected Job<?,?> getJob()
protected SCMFacade getScmFacade()
protected com.cloudbees.plugins.credentials.common.StandardCredentials getGiteaAppCredentials(String credentialsId)
protected boolean hasGiteaAppCredentials()
protected boolean hasCredentialsId()
protected boolean hasValidCredentials(edu.hm.hafner.util.FilteredLog logger)
Copyright © 2016–2022. All rights reserved.