ODCS: Add support for scratch_modules to pungi.conf.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-10-12 07:18:09 +02:00
parent 87779c2821
commit e720bfc73c

View file

@ -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 = [