mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
ci: remove jjb Pods after job finished
Currently the number of Pods is growing in the OpenShift Console. The pods are all Completed, so not running anymore, but there is also no need to keep them around. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a089d8eaa1
commit
477a1225c9
@ -63,6 +63,7 @@ oc logs "${jjb_pod}"
|
|||||||
|
|
||||||
# delete the job, so a next run can create it again
|
# delete the job, so a next run can create it again
|
||||||
oc process -f "jjb-${CMD}.yaml" -p=SESSION="${SESSION}" | oc delete --wait -f -
|
oc process -f "jjb-${CMD}.yaml" -p=SESSION="${SESSION}" | oc delete --wait -f -
|
||||||
|
oc delete pod "${jjb_pod}"
|
||||||
|
|
||||||
# return the exit status of the pod
|
# return the exit status of the pod
|
||||||
[ "${status}" = 'Succeeded' ]
|
[ "${status}" = 'Succeeded' ]
|
||||||
|
Loading…
Reference in New Issue
Block a user