[koji-builder] Add new policy for abrt-java-connector - staging

This will allow abrt-java-connector to be built directly from the fork. For now
only allowed on staging to test first.
See https://pagure.io/fedora-infrastructure/issue/9728

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-10-26 12:09:10 +02:00 committed by kevin
parent 3a73ef0d6d
commit 6e6f1a28d6

View file

@ -197,3 +197,12 @@ sidetag =
tag epel8-build :: allow
tag epel7-build :: allow
all :: deny
{% if env == "staging" %}
# Policy for building scratch builds
build_from_scm =
# allow scratch build for anything from anywhere
bool scratch :: allow
# allow to build from forks
match scm_type GIT GIT+SSH && match scm_host src.fedoraproject.org/forks/* :: allow
{% endif %}