From fa32a2065725dfa442536b2b99d0666a990e7521 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jan 29 2021 14:59:23 +0000 Subject: rpminspect: ensure to run from the distgit dir Also add some debug This will make rpminspect read a local config file. --- diff --git a/roles/rpminspect/tasks/main.yaml b/roles/rpminspect/tasks/main.yaml index 61b5b32..218f771 100644 --- a/roles/rpminspect/tasks/main.yaml +++ b/roles/rpminspect/tasks/main.yaml @@ -65,7 +65,15 @@ - name: Show rpminspect cache tree command: find {{ previous_build_path }} {{ workdir }}/{{ baserpmname }} +- name: Attempt to display local rpminspect.yaml + shell: test -f rpminspect.yaml && cat rpminspect.yaml + failed_when: false + args: + chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" + - name: Run rpminspect command: | - {{ rpminspect_cmd }} -k -t BAD -a {{ arches }} -o {{ zuul_output_dir }}/logs/result.json -F json + {{ rpminspect_cmd }} -Dv -k -t BAD -a {{ arches }} -o {{ zuul_output_dir }}/logs/result.json -F json {{ previous_build_path }} {{ workdir }}/{{ baserpmname }} + args: + chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"