From 9e559a54a33aaf66e7b99ffbc75d1d2f010cb6de Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jan 08 2021 13:28:51 +0000 Subject: check-for-arches: store and display stderr for debug --- diff --git a/playbooks/rpm/check-for-arches.yaml b/playbooks/rpm/check-for-arches.yaml index 9704bbc..2e2a53c 100644 --- a/playbooks/rpm/check-for-arches.yaml +++ b/playbooks/rpm/check-for-arches.yaml @@ -1,12 +1,18 @@ - hosts: localhost tasks: - name: Check for noarch - command: sh -c "rpm --specfile *.spec 2> /dev/null | rev | cut -d'.' -f 1 | rev | grep -v '^noarch$'" + command: sh -c "rpm --specfile *.spec 2> stderr.log | rev | cut -d'.' -f 1 | rev | grep -v '^noarch$'" register: tests_noarch failed_when: false args: chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" + - name: Show stderr + command: cat stderr.log + failed_when: false + args: + chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" + - zuul_return: data: zuul: