public class LinkedRepositoryExportServiceImpl extends Object implements LinkedRepositoryExportService
Constructor and Description |
---|
LinkedRepositoryExportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties |
convertYamlRepository(String yaml)
Converts data from a YAML file to credential export properties.
|
Iterable<Path> |
exportAllLinkedRepositories()
Export all linked repositories to default location in Bamboo home dir.
|
Iterable<Path> |
exportLinkedRepository(VcsRepositoryData repositoryData)
Export a linked repository to default location in Bamboo home dir.
|
PartialVcsRepositoryData |
importLinkedRepository(com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties)
Validates exported linked repository properties within Bamboo context (e.g.
|
@NotNull public Iterable<Path> exportAllLinkedRepositories()
LinkedRepositoryExportService
exportAllLinkedRepositories
in interface LinkedRepositoryExportService
@NotNull public Iterable<Path> exportLinkedRepository(@NotNull VcsRepositoryData repositoryData)
LinkedRepositoryExportService
exportLinkedRepository
in interface LinkedRepositoryExportService
@NotNull public com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties convertYamlRepository(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
LinkedRepositoryExportService
convertYamlRepository
in interface LinkedRepositoryExportService
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 PartialVcsRepositoryData importLinkedRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
LinkedRepositoryExportService
importLinkedRepository
in interface LinkedRepositoryExportService
repositoryProperties
- repository properties to importcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsUnauthorisedException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.