Skip to content

Commit

Permalink
ci: remove jjb Pods after job finished
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nixpanic authored and mergify[bot] committed Jun 10, 2020
1 parent a089d8e commit 477a122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deploy/jjb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ oc logs "${jjb_pod}"

# 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 delete pod "${jjb_pod}"

# return the exit status of the pod
[ "${status}" = 'Succeeded' ]

0 comments on commit 477a122

Please sign in to comment.