Class BitbucketCloudApi.BitbucketCloudApiFactory
java.lang.Object
io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketApiFactory
io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BitbucketCloudApi.BitbucketCloudApiFactory
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- BitbucketCloudApi
@Extension
public static class BitbucketCloudApi.BitbucketCloudApiFactory
extends BitbucketApiFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String apiUrl, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) CreateBitbucketApi
instance.boolean
Methods inherited from class io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketApiFactory
resolve
-
Constructor Details
-
BitbucketCloudApiFactory
public BitbucketCloudApiFactory()
-
-
Method Details
-
handles
- Specified by:
handles
in classBitbucketApiFactory
- Returns:
- true if this factory can handle this scmId
-
create
@NonNull public BitbucketApi create(@NonNull String apiUrl, @NonNull com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) Description copied from class:BitbucketApiFactory
CreateBitbucketApi
instance. Before calling this method, clients must ensureBitbucketApiFactory.handles(String)
is called first and returned true- Specified by:
create
in classBitbucketApiFactory
- Parameters:
apiUrl
- API url (host url) of bitbucket server or cloud. e.g. https://mybitbucketserver.com/credentials
-StandardUsernamePasswordCredentials
- Returns:
BitbucketApi
instance
-