public class RepositoryExportServiceImpl extends Object implements RepositoryExportService
Constructor and Description |
---|
RepositoryExportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties |
convertYamlRepository(@NotNull String yaml)
Converts data from a YAML file to credential export properties.
|
@NotNull Iterable<Path> |
exportAllLinkedRepositories()
Export all linked repositories to default location in Bamboo home dir.
|
@NotNull Iterable<Path> |
exportLinkedRepository(@NotNull VcsRepositoryData repositoryData)
Export a linked repository to default location in Bamboo home dir.
|
@NotNull PartialVcsRepositoryData |
importRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties)
Validates exported linked/project repository properties within Bamboo context (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importLinkedRepository
@NotNull public @NotNull Iterable<Path> exportAllLinkedRepositories()
RepositoryExportService
exportAllLinkedRepositories
in interface RepositoryExportService
@NotNull public @NotNull Iterable<Path> exportLinkedRepository(@NotNull @NotNull VcsRepositoryData repositoryData)
RepositoryExportService
exportLinkedRepository
in interface RepositoryExportService
@NotNull public @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties convertYamlRepository(@NotNull @NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
RepositoryExportService
convertYamlRepository
in interface RepositoryExportService
yaml
- path to YAML file containing definition of shared credentialcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalid@NotNull public @NotNull PartialVcsRepositoryData importRepository(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
RepositoryExportService
importRepository
in interface RepositoryExportService
repositoryProperties
- repository properties to importcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsUnauthorisedException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.