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
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
apiUri()
The endpoint of theGitHubSCMSource
that is being built.build()
final String
The credentials that theGitHubSCMSource
will use.final String
id()
The id of theGitHubSCMSource
that is being built.final String
The repository owner that theGitHubSCMSource
will 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 theGitHubSCMSource
that is being built.- Returns:
- the id of the
GitHubSCMSource
that is being built.
-
apiUri
The endpoint of theGitHubSCMSource
that is being built.- Returns:
- the endpoint of the
GitHubSCMSource
that is being built.
-
credentialsId
The credentials that theGitHubSCMSource
will use.- Returns:
- the credentials that the
GitHubSCMSource
will use.
-
repoOwner
The repository owner that theGitHubSCMSource
will be configured to use.- Returns:
- the repository owner that the
GitHubSCMSource
will be configured to use.
-
build
- Specified by:
build
in classjenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,
GitHubSCMSource>
-