aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBartosz Bezak <bartosz@stackhpc.com>2025-09-02 15:33:24 +0200
committerBartosz Bezak <bartosz@stackhpc.com>2025-09-03 12:27:45 +0200
commit6b8123a8ccf4273d713c3fe3f8f592b85fe8de99 (patch)
tree4b24fedbe7a70ceb18bdad3463a20a72ad312360 /tests
parentcc328dc8656399ec4a68156573e91e6930fa1948 (diff)
downloadkolla-6b8123a8ccf4273d713c3fe3f8f592b85fe8de99.tar.gz
kolla-6b8123a8ccf4273d713c3fe3f8f592b85fe8de99.zip
CI: add weekly COPR RPM build Erlang job
Updating Erlang RPMs for aarch64 in Fedora COPR build system [1] [2]. Using COPR webhooks feature [3]. [1] https://copr.fedorainfracloud.org/coprs/g/openstack-kolla/rabbitmq-erlang-26 [2] https://copr.fedorainfracloud.org/coprs/g/openstack-kolla/rabbitmq-erlang-27 [3] https://docs.pagure.org/copr.copr/user_documentation.html#custom-webhook Change-Id: Ibd4450d14691aca627d99c321b313420ce6dd6f2 Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/playbooks/copr-erlang-update.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/playbooks/copr-erlang-update.yml b/tests/playbooks/copr-erlang-update.yml
new file mode 100644
index 000000000..a05a7ce24
--- /dev/null
+++ b/tests/playbooks/copr-erlang-update.yml
@@ -0,0 +1,18 @@
+---
+- 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 | 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 }}"
+ method: POST
+ loop: "{{ kolla_copr_webhooks.urls }}"