Skip to content

Commit 0a2860e

Browse files
Adding job_completion as a register variable to be displayed in the output
1 parent ad4120e commit 0a2860e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/cloud-build/daily-tests/ansible_playbooks/test-validation/test-gke-job.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
kubectl wait --for=condition=complete "job/${JOB_NAME}" --timeout=10m
4141
args:
4242
executable: /bin/bash
43+
register: job_completion
44+
until: job_completion.rc == 0
45+
retries: 5
46+
delay: 10
4347
rescue:
4448
- name: "FAILURE: Job did not complete. Capturing debug info."
4549
ansible.builtin.debug:

0 commit comments

Comments
 (0)