aboutsummaryrefslogtreecommitdiff
path: root/tests/playbooks/copr-erlang-update.yml
blob: 0cd9489e43a067b03bd5f9a09803113fe3d1531f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: COPR Erlang update
  hosts: all
  tasks:
    - name: Ensure webhook URLs are defined
      no_log: true
      ansible.builtin.assert:
        that:
          - kolla_copr_webhooks.urls is defined
          - kolla_copr_webhooks.urls | type_debug == 'list'
          - kolla_copr_webhooks.urls | length > 0
        fail_msg: "Missing Zuul secret 'kolla_copr_webhooks.urls' (list of webhook URLs)."

    - name: Trigger COPR builds via webhooks
      no_log: true
      ansible.builtin.uri:
        url: "{{ item | trim }}"
        method: POST
      loop: "{{ kolla_copr_webhooks.urls }}"