Class GitHubSCMSourceBuilder
java.lang.Object
jenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,GitHubSCMSource>
 
org.jenkinsci.plugins.github_branch_source.GitHubSCMSourceBuilder
public class GitHubSCMSourceBuilder
extends jenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,GitHubSCMSource> 
A 
SCMSourceBuilder that builds GitHubSCMSource instances- Since:
- 2.2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringapiUri()The endpoint of theGitHubSCMSourcethat is being built.build()final StringThe credentials that theGitHubSCMSourcewill use.final Stringid()The id of theGitHubSCMSourcethat is being built.final StringThe repository owner that theGitHubSCMSourcewill be configured to use.Methods inherited from class jenkins.scm.api.trait.SCMSourceBuilderprojectName, sourceClass, traits, withRequest, withTrait, withTrait, withTraits, withTraits
- 
Constructor Details- 
GitHubSCMSourceBuilderpublic GitHubSCMSourceBuilder(@CheckForNull String id, @CheckForNull String apiUri, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName) Constructor.- Parameters:
- id- the- SCMSource.getId()
- apiUri- the- GitHubSCMSource.getApiUri()
- credentialsId- the credentials id.
- repoOwner- the repository owner.
- repoName- the project name.
 
 
- 
- 
Method Details- 
idThe id of theGitHubSCMSourcethat is being built.- Returns:
- the id of the GitHubSCMSourcethat is being built.
 
- 
apiUriThe endpoint of theGitHubSCMSourcethat is being built.- Returns:
- the endpoint of the GitHubSCMSourcethat is being built.
 
- 
credentialsIdThe credentials that theGitHubSCMSourcewill use.- Returns:
- the credentials that the GitHubSCMSourcewill use.
 
- 
repoOwnerThe repository owner that theGitHubSCMSourcewill be configured to use.- Returns:
- the repository owner that the GitHubSCMSourcewill be configured to use.
 
- 
build- Specified by:
- buildin class- jenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,- GitHubSCMSource> 
 
 
-