Handle cleanup-run deprecation

This updates the base-jobs to use the new post-run cleanup flag
rather than the deprecated cleanup-run attribute.

Change-Id: I252f110698d0193e82fb437d0914a7698733f216
This commit is contained in:
James E. Blair 2024-09-12 11:37:08 -07:00
parent a0739122f7
commit 493e30ce18

View File

@ -10,8 +10,10 @@
It also sets a default timeout value (which may be overidden). It also sets a default timeout value (which may be overidden).
pre-run: playbooks/base/pre.yaml pre-run: playbooks/base/pre.yaml
post-run: playbooks/base/post.yaml post-run:
cleanup-run: playbooks/base/cleanup.yaml - playbooks/base/post.yaml
- name: playbooks/base/cleanup.yaml
cleanup: true
roles: roles:
- zuul: opendev.org/zuul/zuul-jobs - zuul: opendev.org/zuul/zuul-jobs
timeout: 1800 timeout: 1800
@ -23,8 +25,10 @@
A job to test changes to the base job without disturbing the A job to test changes to the base job without disturbing the
main job in production. Not for general use. main job in production. Not for general use.
pre-run: playbooks/base-test/pre.yaml pre-run: playbooks/base-test/pre.yaml
post-run: playbooks/base-test/post.yaml post-run:
cleanup-run: playbooks/base-test/cleanup.yaml - playbooks/base-test/post.yaml
- name: playbooks/base-test/cleanup.yaml
cleanup: true
roles: roles:
- zuul: opendev.org/zuul/zuul-jobs - zuul: opendev.org/zuul/zuul-jobs
timeout: 1800 timeout: 1800