@ExperimentalApi
public interface LinkedRepositoryExportService
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 Iterable<Path> exportAllLinkedRepositories()
@NotNull Iterable<Path> exportLinkedRepository(@NotNull VcsRepositoryData repositoryData)
@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties convertYamlRepository(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
yaml
- path to YAML file containing definition of shared credentialYamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not valid@NotNull PartialVcsRepositoryData importLinkedRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
repositoryProperties
- repository properties to importcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsRuntimeException
- if the format of the data is invalid - only discoverable at this stage
because pluggable code is involved, underlying cause: YamlValidationException
UnauthorisedException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.