Class GitHubToGitPluginConfigurationTransformer
java.lang.Object
com.atlassian.bamboo.plugins.github.GitHubToGitPluginConfigurationTransformer
- All Implemented Interfaces:
GitPluginConfigurationTransformer
public class GitHubToGitPluginConfigurationTransformer
extends Object
implements GitPluginConfigurationTransformer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the singleton instance of theGitHubToGitPluginConfigurationTransformer
.toGitServerConfiguration
(@NotNull Map<String, String> serverCfg) Transforms plugin-dependent server configuration to a git plugin compatible configuration.
-
Constructor Details
-
GitHubToGitPluginConfigurationTransformer
public GitHubToGitPluginConfigurationTransformer()
-
-
Method Details
-
getInstance
Returns the singleton instance of theGitHubToGitPluginConfigurationTransformer
. If the instance does not already exist, it is created and returned. This method is thread-safe.- Returns:
- the singleton instance of
GitHubToGitPluginConfigurationTransformer
-
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
-