Skip to content

Commit

Permalink
Print test job detail on faliure for gke-storage-parallelstore integr…
Browse files Browse the repository at this point in the history
…ation test
  • Loading branch information
mohitchaurasia91 committed Nov 15, 2024
1 parent 3f66bf0 commit a4b6a16
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@
- name: Print job_completion debug output
ansible.builtin.debug:
var: job_completion.stdout_lines

- name: Get job detail on failure
delegate_to: localhost
ansible.builtin.command: |
kubectl get job
register: job_detail
when: job_completion.stdout_lines | length <= 1

- name: Print job_detail debug output
ansible.builtin.debug:
var: job_detail.stdout_lines
when: job_detail.stdout_lines is defined

0 comments on commit a4b6a16

Please sign in to comment.