koji: add scm plugin
Add a scm plugin and some policy for it. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
9a664eadb5
commit
f5ca8fcfbf
2 changed files with 7 additions and 0 deletions
|
@ -163,6 +163,7 @@ keytab = /etc/kojid/kojid.keytab
|
||||||
{{ plugins.append("osbuild") }}
|
{{ plugins.append("osbuild") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{{ plugins.append("scmpolicy") }}
|
||||||
|
|
||||||
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
|
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
|
||||||
plugins = {{ plugins | join(" ") }}
|
plugins = {{ plugins | join(" ") }}
|
||||||
|
|
|
@ -211,3 +211,9 @@ build_from_scm =
|
||||||
# allow to build from forks
|
# allow to build from forks
|
||||||
match scm_type GIT GIT+SSH && match scm_host src.fedoraproject.org/forks/* :: allow
|
match scm_type GIT GIT+SSH && match scm_host src.fedoraproject.org/forks/* :: allow
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
scm =
|
||||||
|
# allow scratch builds from any commits
|
||||||
|
bool scratch :: allow
|
||||||
|
match_all branches * !! deny Commit must be present on some branch
|
||||||
|
all :: allow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue