Class BitbucketCloudToGitPluginConfigurationTransformer
java.lang.Object
com.atlassian.bamboo.plugins.bitbucket.v2.BitbucketCloudToGitPluginConfigurationTransformer
- All Implemented Interfaces:
GitPluginConfigurationTransformer
public class BitbucketCloudToGitPluginConfigurationTransformer
extends Object
implements GitPluginConfigurationTransformer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the singleton instance of theBitbucketCloudToGitPluginConfigurationTransformer
.static @NotNull String
getRepositoryCloneUrl
(@NotNull BitbucketAuthenticationType authenticationType, @NotNull String repositorySlug) toGitServerConfiguration
(@NotNull Map<String, String> serverCfg) Transforms plugin-dependent server configuration to a git plugin compatible configuration.
-
Constructor Details
-
BitbucketCloudToGitPluginConfigurationTransformer
public BitbucketCloudToGitPluginConfigurationTransformer()
-
-
Method Details
-
getInstance
Returns the singleton instance of theBitbucketCloudToGitPluginConfigurationTransformer
. If the instance does not already exist, it is created and returned. This method is thread-safe.- Returns:
- the singleton instance of
BitbucketCloudToGitPluginConfigurationTransformer
-
toGitServerConfiguration
@NotNull public @NotNull Map<String,String> toGitServerConfiguration(@NotNull @NotNull Map<String, String> serverCfg) Description copied from interface:GitPluginConfigurationTransformer
Transforms plugin-dependent server configuration to a git plugin compatible configuration.- Specified by:
toGitServerConfiguration
in interfaceGitPluginConfigurationTransformer
- Parameters:
serverCfg
- the repository server configuration to be transformed- Returns:
- a new Map containing the transformed configuration data compatible with the git plugin
-
getRepositoryCloneUrl
@NotNull public static @NotNull String getRepositoryCloneUrl(@NotNull @NotNull BitbucketAuthenticationType authenticationType, @NotNull @NotNull String repositorySlug)
-