Support sharing repositories between projects
Closed this issue ยท 5 comments
damacus commented
Is your feature request related to a problem? Please describe.
It is currently only possible to share a central repository with new projects via the UI. This is slow and prone to error when there are 100+ projects within the organisation.
Describe the solution you'd like
resource "artifactory_remote_alpine_repository" "my-remote-alpine" {
key = "my-remote-alpine"
url = "http://dl-cdn.alpinelinux.org/alpine"
}
resource "project" "myproject" {
key = "myproj"
display_name = "My Project"
description = "My Project"
}
resource "artifactory_share_repository" "my-remote-alpine" {
repo_name = artifactory_remote_alpine_repository.my-remote-alpine.name
target_project_key = project.myproject.key
}
Describe alternatives you've considered
Additional context
danielmkn commented
Hi @damacus, we currently can't implement it, because there is no public API to gather the information about which project/projects the repository is shared with. The ticket was created for the Artifactory team.
Also, please create a support ticket and mention internal tickets RTDEV-29940
and PTRENG-4899
.
shurikg commented
The target_project_key
needs to be a list.
It can be a situation in which I want to share the repo for multiple projects.
alexhung commented
damacus commented
Thanks!