From 47ab7b709e91bcbdac9814c778d7ec08521e5563 Mon Sep 17 00:00:00 2001 From: Aleksandra Fedorova Date: Jun 13 2023 13:57:07 +0000 Subject: Add check for package being part of ELN We fetch ELN and ELN Extras content and check if short_name (the name of the gitrepo we are dealing with) is in those lists. This change will have no immediate effect as the playbook is not called by any job at the moment. See also https://github.com/fedora-eln/eln/issues/75 --- diff --git a/playbooks/rpm/check-for-eln.yaml b/playbooks/rpm/check-for-eln.yaml new file mode 100644 index 0000000..cafb541 --- /dev/null +++ b/playbooks/rpm/check-for-eln.yaml @@ -0,0 +1,27 @@ +--- +- hosts: localhost + tasks: + - name: Fetch list of ELN Content + ansible.builtin.uri: + url: https://tiny.distro.builders/view-all-source-package-name-list--view-eln.txt + return_content: true + register: eln + - name: Fetch list of ELN Extras Content + ansible.builtin.uri: + url: https://tiny.distro.builders/view-all-source-package-name-list--view-eln-extras.txt + return_content: true + register: eln_extras + - set_fact: + eln_list: "{{eln.content | split('\n') + eln_extras.content | split('\n')}}" + + - zuul_return: + data: + zuul: + child_jobs: + - eln-rpm-scratch-build + when: zuul.project.short_name in eln_list + - zuul_return: + data: + zuul: + child_jobs: [] + when: zuul.project.short_name not in eln_list