Class BitbucketSCMSourceBuilder
java.lang.Object
jenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,BitbucketSCMSource>
com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSourceBuilder
public class BitbucketSCMSourceBuilder
extends jenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,BitbucketSCMSource>
A
SCMSourceBuilder that builds BitbucketSCMSource instances- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketSCMSourceBuilder(String id, String serverUrl, String credentialsId, String repoOwner, String repoName) Deprecated.Added only for backward compatibility with BitbucketPipelineCreateRequest from Blue Ocean.BitbucketSCMSourceBuilder(String id, String serverUrl, String credentialsId, String repoOwner, String repoName, String mirrorId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild()final StringThe credentials that theBitbucketSCMSourcewill use.final Stringid()The id of theBitbucketSCMSourcethat is being built.final StringmirrorId()The mirror id that theBitbucketSCMSourcewill use.final StringThe repository owner that theBitbucketSCMSourcewill be configured to use.final StringThe server url of theBitbucketSCMSourcethat is being built.Methods inherited from class jenkins.scm.api.trait.SCMSourceBuilder
projectName, sourceClass, traits, withRequest, withTrait, withTrait, withTraits, withTraits
-
Constructor Details
-
BitbucketSCMSourceBuilder
public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String serverUrl, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName, @CheckForNull String mirrorId) Constructor.- Parameters:
id- theSCMSource.getId()serverUrl- theBitbucketSCMSource.getServerUrl()credentialsId- the credentials id.repoOwner- the repository owner.repoName- the project name.
-
BitbucketSCMSourceBuilder
@Deprecated public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String serverUrl, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName) Deprecated.Added only for backward compatibility with BitbucketPipelineCreateRequest from Blue Ocean. Will be removed soon.Backward compatible constructor.- Parameters:
id- theSCMSource.getId()serverUrl- theBitbucketSCMSource.getServerUrl()credentialsId- the credentials id.repoOwner- the repository owner.repoName- the project name.
-
-
Method Details
-
id
The id of theBitbucketSCMSourcethat is being built.- Returns:
- the id of the
BitbucketSCMSourcethat is being built.
-
serverUrl
The server url of theBitbucketSCMSourcethat is being built.- Returns:
- the server url of the
BitbucketSCMSourcethat is being built.
-
mirrorId
The mirror id that theBitbucketSCMSourcewill use.- Returns:
- the mirror id that the
BitbucketSCMSourcewill use.
-
credentialsId
The credentials that theBitbucketSCMSourcewill use.- Returns:
- the credentials that the
BitbucketSCMSourcewill use.
-
repoOwner
The repository owner that theBitbucketSCMSourcewill be configured to use.- Returns:
- the repository owner that the
BitbucketSCMSourcewill be configured to use.
-
build
- Specified by:
buildin classjenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,BitbucketSCMSource>
-