From 6e6f1a28d619f9351f52becfa07be78c6768f2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Wed, 26 Oct 2022 12:09:10 +0200 Subject: [PATCH] [koji-builder] Add new policy for abrt-java-connector - staging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ý --- roles/koji_hub/templates/hub.conf.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/koji_hub/templates/hub.conf.j2 b/roles/koji_hub/templates/hub.conf.j2 index 59bb17e9a7..99f3b28b66 100644 --- a/roles/koji_hub/templates/hub.conf.j2 +++ b/roles/koji_hub/templates/hub.conf.j2 @@ -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 %}