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 SummaryConstructorsConstructorDescriptionBitbucketSCMSourceBuilder(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 SummaryModifier 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.SCMSourceBuilderprojectName, sourceClass, traits, withRequest, withTrait, withTrait, withTraits, withTraits
- 
Constructor Details- 
BitbucketSCMSourceBuilderpublic BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String serverUrl, @CheckForNull String credentialsId, @NonNull String repoOwner, @NonNull String repoName, @CheckForNull String mirrorId) Constructor.- Parameters:
- id- the- SCMSource.getId()
- serverUrl- the- BitbucketSCMSource.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- the- SCMSource.getId()
- serverUrl- the- BitbucketSCMSource.getServerUrl()
- credentialsId- the credentials id.
- repoOwner- the repository owner.
- repoName- the project name.
 
 
- 
- 
Method Details- 
idThe id of theBitbucketSCMSourcethat is being built.- Returns:
- the id of the BitbucketSCMSourcethat is being built.
 
- 
serverUrlThe server url of theBitbucketSCMSourcethat is being built.- Returns:
- the server url of the BitbucketSCMSourcethat is being built.
 
- 
mirrorIdThe mirror id that theBitbucketSCMSourcewill use.- Returns:
- the mirror id that the BitbucketSCMSourcewill use.
 
- 
credentialsIdThe credentials that theBitbucketSCMSourcewill use.- Returns:
- the credentials that the BitbucketSCMSourcewill use.
 
- 
repoOwnerThe repository owner that theBitbucketSCMSourcewill be configured to use.- Returns:
- the repository owner that the BitbucketSCMSourcewill be configured to use.
 
- 
build- Specified by:
- buildin class- jenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,- BitbucketSCMSource> 
 
 
-