docs: add cleanup-run documentation

Change-Id: Iee05d1d108fb8c1280f0bb95a365428ff8c99650
This commit is contained in:
Tristan Cacqueray committed 2019-06-04 02:55:56 +00:00
1 parent ad0af09111
commit df2a79baa2
2 files changed
+15

No files matched your search

+10
View File
@@ -884,6 +884,16 @@ Here is an example of two job definitions:
playbooks are run before the parent's. See :ref:`job` for more
information.
.. attr:: cleanup-run
The name of a playbook or list of playbooks to run after a job
execution. The full path to the playbook in the repo
where the job is defined is expected.
The cleanup phase is performed unconditionally of the job's result,
even when the job is canceled. Cleanup results are not taken into
account.
.. attr:: run
The name of a playbook or list of playbooks for this job. If it
@@ -0,0 +1,5 @@
---
features:
- |
The :attr:`job.cleanup-run` attribute has been added to enable
a new cleanup phase to be performed after a job execution.