Fix job status check (#115)
* Fix job status check * Add a delay before get Kubernetes job status
This commit is contained in:
parent
4ae17c5b1d
commit
ac8f01c922
3
.github/workflows/run-release-tests.yaml
vendored
3
.github/workflows/run-release-tests.yaml
vendored
@ -103,6 +103,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set workflow status from job status
|
- name: Set workflow status from job status
|
||||||
run: |
|
run: |
|
||||||
|
sleep 5
|
||||||
job_status=$(kubectl get jobs ${{ env.NAMEPREFIX }} -n ${{ env.NAMESPACE }} -o jsonpath='{.status.conditions[0].type}')
|
job_status=$(kubectl get jobs ${{ env.NAMEPREFIX }} -n ${{ env.NAMESPACE }} -o jsonpath='{.status.conditions[0].type}')
|
||||||
echo "Job status: $job_status"
|
echo "Job status: $job_status"
|
||||||
[[ "${job_status}" != "Complete" ]] && exit 1
|
if [[ "${job_status}" != "Complete" ]]; then exit 1; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user