koji: Switch to rpmautospec mock plugin in staging
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
8fe5517885
commit
d566528276
3 changed files with 29 additions and 3 deletions
|
@ -15,3 +15,11 @@ config_opts['dnf_warning'] = False
|
||||||
config_opts["dnf5_avoid_opts"] = {
|
config_opts["dnf5_avoid_opts"] = {
|
||||||
"group": ["--allowerasing"],
|
"group": ["--allowerasing"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{% if env == "staging" %}
|
||||||
|
config_opts['plugin_conf']['rpmautospec_enable'] = True
|
||||||
|
config_opts['plugin_conf']['rpmautospec_opts'] = {
|
||||||
|
'requires': ['rpmautospec'],
|
||||||
|
'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'],
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
- koji-containerbuild-builder
|
- koji-containerbuild-builder
|
||||||
- strace
|
- strace
|
||||||
- mock
|
- mock
|
||||||
|
- mock-rpmautospec
|
||||||
- kernel-firmware
|
- kernel-firmware
|
||||||
- kernel-modules
|
- kernel-modules
|
||||||
- rsyslog
|
- rsyslog
|
||||||
|
@ -102,10 +103,19 @@
|
||||||
|
|
||||||
- name: install koji builder rpmautospec plugin
|
- name: install koji builder rpmautospec plugin
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: koji-builder-plugin-rpmautospec
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
when: env != 'staging'
|
||||||
- koji-builder-plugin-rpmautospec
|
tags:
|
||||||
|
- packages
|
||||||
|
- koji_builder
|
||||||
|
- rpmautospec
|
||||||
|
|
||||||
|
- name: remove koji builder rpmautospec plugin
|
||||||
|
package:
|
||||||
|
name: koji-builder-plugin-rpmautospec
|
||||||
|
state: absent
|
||||||
|
when: env == 'staging'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
- koji_builder
|
- koji_builder
|
||||||
|
|
|
@ -27,3 +27,11 @@ config_opts['use_bootstrap_image'] = False
|
||||||
config_opts["dnf5_avoid_opts"] = {
|
config_opts["dnf5_avoid_opts"] = {
|
||||||
"group": ["--allowerasing"],
|
"group": ["--allowerasing"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{% if env == "staging" %}
|
||||||
|
config_opts['plugin_conf']['rpmautospec_enable'] = True
|
||||||
|
config_opts['plugin_conf']['rpmautospec_opts'] = {
|
||||||
|
'requires': ['rpmautospec'],
|
||||||
|
'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'],
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue