mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 02:20:51 +08:00
taskotron-trigger: make rules more readable
But expanding the structured fields.
This commit is contained in:
@@ -1,51 +1,71 @@
|
||||
---
|
||||
- when: {message_type: KojiBuildPackageCompleted}
|
||||
- when:
|
||||
message_type: KojiBuildPackageCompleted
|
||||
do:
|
||||
- {tasks: [rpmlint, rpmgrill, python-versions]}
|
||||
- tasks:
|
||||
- python-versions
|
||||
- rpmgrill
|
||||
- rpmlint
|
||||
|
||||
- when:
|
||||
message_type: KojiBuildPackageCompleted
|
||||
name:
|
||||
$nin: [{{ trigger_abicheck_blacklist | join(',') }}]
|
||||
$nin:
|
||||
- "{{ trigger_abicheck_blacklist | join(',') }}"
|
||||
do:
|
||||
- {tasks: [abicheck]}
|
||||
- tasks:
|
||||
- abicheck
|
||||
|
||||
- when:
|
||||
message_type: KojiTagChanged
|
||||
tag: {$regex: '/^f[0-9]{2}-updates(-testing)?-pending$$/'}
|
||||
tag:
|
||||
$regex: '/^f[0-9]{2}-updates(-testing)?-pending$$/'
|
||||
do:
|
||||
- {tasks: [rpmdeplint]}
|
||||
- tasks:
|
||||
- rpmdeplint
|
||||
|
||||
- when: {message_type: DistGitCommit, namespace: modules}
|
||||
- when:
|
||||
message_type: DistGitCommit
|
||||
namespace: modules
|
||||
do:
|
||||
- {tasks: [check_modulemd]}
|
||||
- tasks:
|
||||
- check_modulemd
|
||||
|
||||
- when:
|
||||
message_type: GitHubPullRequestOpened
|
||||
repo_name: {$regex: '/^container-images\/.+/'}
|
||||
repo_name:
|
||||
$regex: '/^container-images\/.+/'
|
||||
do:
|
||||
- {tasks: [mtf-containers]}
|
||||
- tasks:
|
||||
- mtf-containers
|
||||
|
||||
{% if deployment_type in ['stg', 'prod'] %}
|
||||
{# these tasks are not ansiblized yet #}
|
||||
- when:
|
||||
message_type: ModuleBuildComplete
|
||||
do:
|
||||
- {tasks: [modularity-testing-framework]}
|
||||
- tasks:
|
||||
- modularity-testing-framework
|
||||
|
||||
- when: {message_type: KojiBuildPackageCompleted, name: docker}
|
||||
- when:
|
||||
message_type: KojiBuildPackageCompleted
|
||||
name: docker
|
||||
do:
|
||||
- {tasks: [dockerautotest]}
|
||||
- tasks:
|
||||
- dockerautotest
|
||||
{% endif %}
|
||||
|
||||
{# disabled due to missing nested virt: https://pagure.io/taskotron/issue/239
|
||||
- when:
|
||||
message_type: AtomicCompose
|
||||
do:
|
||||
- {tasks: [upstream-atomic, fedora-cloud-tests]}
|
||||
- tasks:
|
||||
- upstream-atomic
|
||||
- fedora-cloud-tests
|
||||
|
||||
- when:
|
||||
message_type: CloudCompose
|
||||
do:
|
||||
- {tasks: [fedora-cloud-tests]}
|
||||
- tasks:
|
||||
- fedora-cloud-tests
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user