ci: remove old jobs when deploying

Old jobs stay behind (and active) when jobs get updated with new
versions. This mostly affects the mini-e2e jobs at the moment.

There is no need to keep old job around, so delete them while deploying
updates to jobs.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-09-25 09:52:48 +02:00 committed by mergify[bot]
parent 31769aa7dc
commit 9a01ee2019

View File

@ -5,4 +5,4 @@ test:
cd $(WORKDIR) && jenkins-jobs test -o $(OUTPUT) jobs
deploy:
cd $(WORKDIR) && jenkins-jobs update jobs
cd $(WORKDIR) && jenkins-jobs update --delete-old jobs