public class GitHubSCMSourceBuilder extends jenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,GitHubSCMSource>
SCMSourceBuilder
that builds GitHubSCMSource
instancesConstructor and Description |
---|
GitHubSCMSourceBuilder(String id,
String apiUri,
String credentialsId,
String repoOwner,
String repoName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
apiUri()
The endpoint of the
GitHubSCMSource that is being built. |
GitHubSCMSource |
build() |
String |
credentialsId()
The credentials that the
GitHubSCMSource will use. |
String |
id()
The id of the
GitHubSCMSource that is being built. |
String |
repoOwner()
The repository owner that the
GitHubSCMSource will be configured to use. |
projectName, sourceClass, traits, withRequest, withTrait, withTrait, withTraits, withTraits
public GitHubSCMSourceBuilder(@CheckForNull String id, @CheckForNull String apiUri, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName)
id
- the SCMSource.getId()
apiUri
- the GitHubSCMSource.getApiUri()
credentialsId
- the credentials id.repoOwner
- the repository owner.repoName
- the project name.public final String id()
GitHubSCMSource
that is being built.GitHubSCMSource
that is being built.@CheckForNull public final String apiUri()
GitHubSCMSource
that is being built.GitHubSCMSource
that is being built.@CheckForNull public final String credentialsId()
GitHubSCMSource
will use.GitHubSCMSource
will use.@NonNull public final String repoOwner()
GitHubSCMSource
will be configured to use.GitHubSCMSource
will be configured to use.@NonNull public GitHubSCMSource build()
build
in class jenkins.scm.api.trait.SCMSourceBuilder<GitHubSCMSourceBuilder,GitHubSCMSource>
Copyright © 2016–2019. All rights reserved.