Open
Description
We are currently trying to develop a promotion permission that allows projects to promote artifacts. Unfortunately, we cannot view builds in the project build info repo with this permission.
resource "platform_group" "promotion" {
name = "project-local-generic-promotion-group"
admin_privileges = false
auto_join = false
}
resource "platform_permission" "promotion_permissions" {
name = "project-local-generic-promotion-permission"
artifact = {
actions = {
groups = [
{
name = platform_group.promotion.name
permissions = ["WRITE", "DELETE"]
}
]
}
targets = [
{
name = "project-local-generic",
include_patterns = ["**"]
},
{
name = "project-dev-local-generic",
include_patterns = ["**"]
}
]
}
build = {
actions = {
groups = [
{
name = platform_group.promotion.name
permissions = ["READ", "WRITE", "DELETE", "ANNOTATE"]
}
]
}
targets = [
{
name = "artifactory-build-info",
include_patterns = ["test-project-build-info/**"]
}
]
}
}
with this permission I cannot see builds in the test-project-build-info
. When I execute jf rt cl "/api/build/test-build?project=test-project"
I get
{
"errors" : [ {
"status" : 404,
"message" : "No build was found for build name: test-build-a"
} ]
}