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
ConstructorDescriptionBitbucketSCMSourceBuilder
(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 String
The credentials that theBitbucketSCMSource
will use.final String
id()
The id of theBitbucketSCMSource
that is being built.final String
mirrorId()
The mirror id that theBitbucketSCMSource
will use.final String
The repository owner that theBitbucketSCMSource
will be configured to use.final String
The server url of theBitbucketSCMSource
that 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 theBitbucketSCMSource
that is being built.- Returns:
- the id of the
BitbucketSCMSource
that is being built.
-
serverUrl
The server url of theBitbucketSCMSource
that is being built.- Returns:
- the server url of the
BitbucketSCMSource
that is being built.
-
mirrorId
The mirror id that theBitbucketSCMSource
will use.- Returns:
- the mirror id that the
BitbucketSCMSource
will use.
-
credentialsId
The credentials that theBitbucketSCMSource
will use.- Returns:
- the credentials that the
BitbucketSCMSource
will use.
-
repoOwner
The repository owner that theBitbucketSCMSource
will be configured to use.- Returns:
- the repository owner that the
BitbucketSCMSource
will be configured to use.
-
build
- Specified by:
build
in classjenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,
BitbucketSCMSource>
-