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
-
-
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
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)
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.
-
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>
-
-