summaryrefslogtreecommitdiffstats
path: root/roles/taskotron/taskotron-trigger/templates/trigger_rules.yml.j2
blob: 645a9198e358669703f67344ba81602b877813a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
{% if deployment_type in ['dev', 'stg'] %}
- when: {message_type: KojiBuildPackageCompleted}
  do:
    - {tasks: [rpmlint, rpmgrill, python-versions]}
    - {discover: {repo: '{{ trigger_distgit_repo_url }}/test-rpms/${name}.git', branch: "${distgit_branch}", fallback_branch: 'master'}}
{% else %}
- when: {message_type: KojiBuildPackageCompleted}
  do:
    - {tasks: [rpmlint, rpmgrill, python-versions]}
{% endif %}
- when: {message_type: KojiBuildDockerCompleted}
  do:
    - {tasks: [simpledocker]}
- when: {message_type: KojiBuildPackageCompleted, name: docker}
  do:
    - {tasks: [dockerautotest]}
- when:
    message_type: KojiBuildPackageCompleted
    name:
{% if deployment_type in ['stg', 'prod'] %}
      $in: ${critpath_pkgs}
{% endif %}
      $nin: [firefox,thunderbird,kernel,kdelibs,kdepim,qt,mariadb,java-1.8.0-openjdk,libreoffice]
  do:
    - {tasks: [abicheck]}
- when: {message_type: KojiTagChanged}
  do:
{% if deployment_type in ['dev', 'stg'] %}
    - {tasks: [depcheck, rpmdeplint]}
{% else %}
    - {tasks: [depcheck]}
{% endif %}
{% if deployment_type not in ['dev', 'stg'] %}
{# stg bodhi doesn't have the info we need, stg koji doesn't have the builds from prod bodhi #}
- when:
    message_type: KojiTagChanged
    tag: {$regex: '/.*(?<!testing-pending)$$/'}
  do:
    - {tasks: [upgradepath]}
{% endif %}
{% if deployment_type in ['dev', 'stg'] %}
- when: {message_type: DistGitCommit, namespace: modules}
  do:
    - {tasks: [check_modulemd]}

# do package-specific tasks if they come in
- when: {message_type: KojiBuildCompleted}
  do:
    - {discover: {repo: '{{ trigger_distgit_repo_url }}/rpms/${name}.git', branch: "${distgit_branch}", fallback_branch: 'master'}}
{% endif %}