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