Class BitbucketServerExporter
java.lang.Object
com.atlassian.bamboo.plugins.stash.v2.configurator.BitbucketServerSshKeyHandler
com.atlassian.bamboo.plugins.stash.v2.exporter.BitbucketServerExporter
- All Implemented Interfaces:
VcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
public class BitbucketServerExporter
extends BitbucketServerSshKeyHandler
implements VcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
YAML_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositoryappendBranchData(@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull VcsBranchDefinition vcsBranchDefinition) Fill in the builder passed as the first argument with vcs branch data.@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositoryappendBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull VcsBranchDetectionOptions branchDetectionOptions) Fill in the builder passed as the first argument with branch detection configuration.@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositoryappendChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull VcsChangeDetectionOptions changeDetectionOptions) Fill in the builder passed as the first argument with change detection configuration.@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositoryappendLocationData(@NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull VcsRepositoryContext repositoryContext) Fill in the builder passed as the first argument with vcs server data.@Nullable com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositoryfromYaml(@NotNull String name, @NotNull Node node, @NotNull TaskValidationContext validationContext) @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepositorygetEntityPropertiesBuilder(@NotNull VcsRepositoryData repositoryData) Create empty instance of a properties builder appropriate for the exported repository data.importBambooSpecsDetectionOptions(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable VcsBambooSpecsDetectionOptions existingData) Extract Bamboo Specs detection configuration from properties object.importBranchData(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable VcsBranchDefinition existingData) Extract branch configuration from properties object.importBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable VcsBranchDetectionOptions existingData) Extract branch detection configuration from properties object.importChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable VcsChangeDetectionOptions existingData) Extract change detection configuration from properties object.importLocationData(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable VcsLocationDefinition existingData, @NotNull VcsRepositoryContext repositoryContext) Extract vcs location configuration from properties object.@Nullable NodetoYaml(@NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repo) Methods inherited from class com.atlassian.bamboo.plugins.stash.v2.configurator.BitbucketServerSshKeyHandler
generateKeyPair, getAuthenticationErrors, sshKeyLocationToString
-
Constructor Details
-
BitbucketServerExporter
public BitbucketServerExporter()
-
-
Method Details
-
getEntityPropertiesBuilder
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryDataExporterCreate empty instance of a properties builder appropriate for the exported repository data.- Specified by:
getEntityPropertiesBuilderin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Returns:
- instance of a builder
-
appendLocationData
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository appendLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull @NotNull VcsRepositoryContext repositoryContext) Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs server data.- Specified by:
appendLocationDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
-
appendBranchData
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository appendBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull @NotNull VcsBranchDefinition vcsBranchDefinition) Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs branch data. Return the first argument if not applicable.- Specified by:
appendBranchDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
-
appendChangeDetectionOptions
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository appendChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull @NotNull VcsChangeDetectionOptions changeDetectionOptions) Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with change detection configuration. Return the first argument if not applicable.- Specified by:
appendChangeDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
-
appendBranchDetectionOptions
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository appendBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository builder, @NotNull @NotNull VcsBranchDetectionOptions branchDetectionOptions) Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with branch detection configuration. Return the first argument if not applicable.- Specified by:
appendBranchDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties>
-
importLocationData
@Nullable public @Nullable Map<String,String> importLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable @Nullable VcsLocationDefinition existingData, @NotNull @NotNull VcsRepositoryContext repositoryContext) Description copied from interface:VcsRepositoryDataExporterExtract vcs location configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importLocationDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Parameters:
repositoryProperties-- Returns:
-
toYaml
@Nullable public @Nullable Node toYaml(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repo) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - Specified by:
toYamlin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
fromYaml
@Nullable public @Nullable com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository fromYaml(@NotNull @NotNull String name, @NotNull @NotNull Node node, @NotNull @NotNull TaskValidationContext validationContext) throws YamlSpecsValidationException - Specified by:
fromYamlin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Throws:
YamlSpecsValidationException
-
importBranchData
@Nullable public @Nullable Map<String,String> importBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable @Nullable VcsBranchDefinition existingData) Description copied from interface:VcsRepositoryDataExporterExtract branch configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importBranchDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Parameters:
repositoryProperties-- Returns:
-
importChangeDetectionOptions
@Nullable public @Nullable Map<String,String> importChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable @Nullable VcsChangeDetectionOptions existingData) Description copied from interface:VcsRepositoryDataExporterExtract change detection configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importChangeDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Parameters:
repositoryProperties-- Returns:
-
importBranchDetectionOptions
@Nullable public @Nullable Map<String,String> importBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable @Nullable VcsBranchDetectionOptions existingData) Description copied from interface:VcsRepositoryDataExporterExtract branch detection configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importBranchDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Parameters:
repositoryProperties-- Returns:
-
importBambooSpecsDetectionOptions
@NotNull public @NotNull Map<String,String> importBambooSpecsDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repositoryProperties, @Nullable @Nullable VcsBambooSpecsDetectionOptions existingData) Description copied from interface:VcsRepositoryDataExporterExtract Bamboo Specs detection configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importBambooSpecsDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.bitbucket.server.BitbucketServerRepository,com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties> - Parameters:
repositoryProperties-
-