public class GitHubSCMFacade extends Object
| 构造器和说明 |
|---|
GitHubSCMFacade() |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials> |
findGitHubAppCredentials(Job<?,?> job,
String credentialsId)
Find
GitHubAppCredentials with the credentialsId used by the job. |
Optional<org.jenkinsci.plugins.github_branch_source.GitHubSCMSource> |
findGitHubSCMSource(Job<?,?> job)
Find
GitHubSCMSource (or GitHub repository) used by the job. |
Optional<jenkins.scm.api.SCMHead> |
findHead(Job<?,?> job)
Find
SCMHead (or branch) used by the job. |
Optional<jenkins.scm.api.SCMRevision> |
findRevision(org.jenkinsci.plugins.github_branch_source.GitHubSCMSource source,
jenkins.scm.api.SCMHead head)
|
public Optional<org.jenkinsci.plugins.github_branch_source.GitHubSCMSource> findGitHubSCMSource(Job<?,?> job)
GitHubSCMSource (or GitHub repository) used by the job.job - the Jenkins projectpublic Optional<org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials> findGitHubAppCredentials(Job<?,?> job, String credentialsId)
GitHubAppCredentials with the credentialsId used by the job.job - the Jenkins projectcredentialsId - the id of the target credentialspublic Optional<jenkins.scm.api.SCMHead> findHead(Job<?,?> job)
SCMHead (or branch) used by the job.job - the Jenkins projectpublic Optional<jenkins.scm.api.SCMRevision> findRevision(org.jenkinsci.plugins.github_branch_source.GitHubSCMSource source, jenkins.scm.api.SCMHead head)
source - the GitHub repositoryhead - the branchCopyright © 2016–2020. All rights reserved.