Add Zuul job variable to indicate a job will retry

This change adds a variable to post and cleanup playboks in order to
determine if a job will be retried due to a failure in one of the
earlier playbooks.

This variable might be useful for only performing certain actions (e.g.
interacting with a remote system) when the job result is final and there
won't be any further attempts.

Change-Id: If7f4488d4a59b1544795401bdc243978fea9ca86
This commit is contained in:
Simon Westphahl
2023-07-24 12:35:12 +02:00
parent 19ae1f2f8a
commit 7bba28a32f
6 changed files with 58 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
---
features:
- |
A new Zuul job variable :var:`zuul_will_retry` available in post and
cleanup playbooks, which indicates whether the current job will be retried.