From 6114c494361074c00b9e79ec5b56c3ae1ee5f4c3 Mon Sep 17 00:00:00 2001 From: Aleksandra Fedorova Date: Jun 12 2023 10:13:30 +0000 Subject: [WIP] ELN support --- diff --git a/playbooks/rpm/check-for-eln.yaml b/playbooks/rpm/check-for-eln.yaml new file mode 100644 index 0000000..8521c41 --- /dev/null +++ b/playbooks/rpm/check-for-eln.yaml @@ -0,0 +1,20 @@ +--- +- hosts: localhost + tasks: + - name: Check that package is included in ELN + shell: "echo {{zuul.project.short_name}}" + failed_when: false + register: tests_stat + args: + chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" + - zuul_return: + data: + zuul: + child_jobs: + - eln-rpm-scratch-build + when: tests_stat.rc == 0 + - zuul_return: + data: + zuul: + child_jobs: [] + when: not tests_stat.rc == 0 diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index f698894..8937810 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -64,6 +64,16 @@ check_for_arches_ignore: false - job: + name: check-for-eln + description: Check the project is included in ELN + run: playbooks/rpm/check-for-eln.yaml + branches: + - rawhide + - main + nodeset: + nodes: [] + +- job: name: common-koji-rpm-build description: Base job for RPM build on Fedora Koji run: playbooks/koji/build-ng.yaml @@ -456,6 +466,22 @@ target: rawhide - job: + name: eln-rpm-scratch-build + parent: common-koji-rpm-build + branches: + - rawhide + - main + final: true + provides: + - repo + vars: + arches: x86_64 + fetch_artifacts: true + release: rawhide + scratch_build: true + target: eln + +- job: name: rpm-build parent: common-koji-rpm-build branches: