From 7cad9825acf699174b2dc47eccb83e756e36ab8e Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Nov 08 2024 08:44:07 +0000 Subject: Update discover-arches.py according to issues raises by running the jobs in // for staging purpose. --- diff --git a/playbooks/rpm/check-for-arches-ng.yaml b/playbooks/rpm/check-for-arches-ng.yaml index 8650e35..b334bc4 100644 --- a/playbooks/rpm/check-for-arches-ng.yaml +++ b/playbooks/rpm/check-for-arches-ng.yaml @@ -6,12 +6,17 @@ dest: /tmp/discover-arches.py - name: Run discover-arches.py - ansible.builtin.shell: python3 /tmp/discover-arches.py *.spec + # The rpm lib may return some warning into stderr but we are expected a valid json output + # Zuul merges stderr in stdout thus let's move stderr in a file + ansible.builtin.shell: python3 /tmp/discover-arches.py *.spec 2> /tmp/discover-arches.stderr register: cmd_out failed_when: false args: chdir: "{{ zuul.project.src_dir }}" + - name: Show discover-arches stderr + ansible.builtin.shell: touch /tmp/discover-arches.stderr && cat /tmp/discover-arches.stderr + # - zuul_return: # data: # zuul: