taskotron-dev: run tasks per-arch

This commit is contained in:
Kamil Páral 2018-05-25 16:55:14 +02:00
parent 927e6f936f
commit 87a9ced54a
3 changed files with 74 additions and 1 deletions

View file

@ -20,7 +20,10 @@
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: generate trigger configuration
template: src=trigger.cfg.j2 dest=/etc/taskotron/trigger.cfg owner=root group=root mode=0744
template: src={{ item }} dest=/etc/taskotron/trigger.cfg owner=root group=root mode=0744
with_first_found:
- trigger.cfg.j2.{{ deployment_type }}
- trigger.cfg.j2
notify:
- restart fedmsg-hub

View file

@ -0,0 +1,23 @@
[buildbot]
url = http://127.0.0.1:8080/change_hook
[trigger]
valid_arches = x86_64,armhfp
koji_url = http://koji.fedoraproject.org/kojihub
datagrepper_url = https://apps.fedoraproject.org/datagrepper/raw
execdb_server = {{ execdb_server }}
runner_type = BuildbotRunner
job_logging = True
joblog_file = {{ trigger_joblog_file }}
fuse_delay = 900 ; 15 minutes in seconds
git_cache_dir = {{ trigger_cache_dir }}
rules_template = {{ trigger_rules_template_path }}
{# enable this if you want taskotron-stg to react to just stg fedmsgs
{% if deployment_type in ['stg'] %}
deployment_type = stg
{% endif%}
#}
[koji_build_completed]
critpath_filepath = {{ trigger_critpath_file }}

View file

@ -0,0 +1,47 @@
---
- when:
message_type: KojiBuildPackageCompleted
do:
- tasks:
- rpmlint
- tasks:
- python-versions
- rpmgrill
arches:
- noarch
- when:
message_type: KojiBuildPackageCompleted
name:
$nin: [{{ trigger_abicheck_blacklist | join(',') }}]
do:
- tasks:
- abicheck
- when:
message_type: KojiTagChanged
tag:
$regex: '/^f[0-9]{2}-updates(-testing)?-pending$$/'
do:
- tasks:
- rpmdeplint
- when:
message_type: DistGitCommit
namespace: modules
do:
- tasks:
- check_modulemd
arches:
- noarch
- when:
message_type: GitHubPullRequestOpened
repo_name:
$regex: '/^container-images\/.+/'
do:
- tasks:
- mtf-containers
arches:
- noarch