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 Summary
Constructors -
Method Summary
Modifier 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.SCMSourceBuilder
projectName, sourceClass, traits, withRequest, withTrait, withTrait, withTraits, withTraits
-
Constructor Details
-
GitHubSCMSourceBuilder
public GitHubSCMSourceBuilder(@CheckForNull String id, @CheckForNull String apiUri, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName) Constructor.- Parameters:
id- theSCMSource.getId()apiUri- theGitHubSCMSource.getApiUri()credentialsId- the credentials id.repoOwner- the repository owner.repoName- the project name.
-
-
Method Details
-
id
The id of theGitHubSCMSourcethat is being built.- Returns:
- the id of the
GitHubSCMSourcethat is being built.
-
apiUri
The endpoint of theGitHubSCMSourcethat is being built.- Returns:
- the endpoint of the
GitHubSCMSourcethat is being built.
-
credentialsId
The credentials that theGitHubSCMSourcewill use.- Returns:
- the credentials that the
GitHubSCMSourcewill use.
-
repoOwner
The repository owner that theGitHubSCMSourcewill be configured to use.- Returns:
- the repository owner that the
GitHubSCMSourcewill be configured to use.
-
build
- Specified by:
buildin classjenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,GitHubSCMSource>
-