From e720bfc73cf0ce6603de5b7f84eda153665d1a0e Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Mon, 12 Oct 2020 07:18:09 +0200 Subject: [PATCH] ODCS: Add support for scratch_modules to pungi.conf. Signed-off-by: Jan Kaluza --- roles/odcs/base/files/pungi.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/roles/odcs/base/files/pungi.conf b/roles/odcs/base/files/pungi.conf index 02fe1b9d9f..ac51979b68 100644 --- a/roles/odcs/base/files/pungi.conf +++ b/roles/odcs/base/files/pungi.conf @@ -72,6 +72,25 @@ pkgset_koji_builds = [ ] {%- endif %} +{%- if config.scratch_modules %} +mbs_api_url = "{{ config.mbs_api_url }}" +pkgset_scratch_modules = { + '^Temporary$': [ +{%- for nsvc in config.scratch_modules %} + '{{ nsvc }}', +{%- endfor %} + ] +} +{%- endif %} + +{%- if config.scratch_build_tasks %} +pkgset_koji_scratch_tasks = [ +{%- for task_id in config.scratch_build_tasks %} + '{{ task_id }}', +{%- endfor %} + ] +{%- endif %} + {%- if config.source_type_str in ["tag", "build"] and not config.packages %} # In case no package is requested, include all of them. additional_packages = [