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>
ASCMSourceBuilder
that buildsBitbucketSCMSource
instances- Since:
- 2.2.0
-
-
Constructor Summary
Constructors Constructor Description BitbucketSCMSourceBuilder(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketSCMSource
build()
String
credentialsId()
The credentials that theBitbucketSCMSource
will use.String
id()
The id of theBitbucketSCMSource
that is being built.String
mirrorId()
The mirror id that theBitbucketSCMSource
will use.String
repoOwner()
The repository owner that theBitbucketSCMSource
will be configured to use.String
serverUrl()
The server url of theBitbucketSCMSource
that is being built.
-
-
-
Constructor Detail
-
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 Detail
-
id
@CheckForNull public final String id()
The id of theBitbucketSCMSource
that is being built.- Returns:
- the id of the
BitbucketSCMSource
that is being built.
-
serverUrl
@NonNull public final String serverUrl()
The server url of theBitbucketSCMSource
that is being built.- Returns:
- the server url of the
BitbucketSCMSource
that is being built.
-
mirrorId
@CheckForNull public final String mirrorId()
The mirror id that theBitbucketSCMSource
will use.- Returns:
- the mirror id that the
BitbucketSCMSource
will use.
-
credentialsId
@CheckForNull public final String credentialsId()
The credentials that theBitbucketSCMSource
will use.- Returns:
- the credentials that the
BitbucketSCMSource
will use.
-
repoOwner
@NonNull public final String repoOwner()
The repository owner that theBitbucketSCMSource
will be configured to use.- Returns:
- the repository owner that the
BitbucketSCMSource
will be configured to use.
-
build
@NonNull public BitbucketSCMSource build()
- Specified by:
build
in classjenkins.scm.api.trait.SCMSourceBuilder<BitbucketSCMSourceBuilder,BitbucketSCMSource>
-
-