summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r--documentation/ref-manual/classes.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 46d77d0e55..9f6e427253 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2728,6 +2728,23 @@ commit, and log. From the information, report files using a JSON format
2728are created and stored in 2728are created and stored in
2729``${``\ :term:`LOG_DIR`\ ``}/error-report``. 2729``${``\ :term:`LOG_DIR`\ ``}/error-report``.
2730 2730
2731.. _ref-classes-retain:
2732
2733``retain``
2734==========
2735
2736The :ref:`ref-classes-retain` class can be used to create a tarball of the work
2737directory for a recipe when one of its tasks fails, or any other nominated
2738directories. It is useful in cases where the environment in which builds are run
2739is ephemeral or otherwise inaccessible for examination during debugging.
2740
2741To enable, add the following to your configuration::
2742
2743 INHERIT += "retain"
2744
2745The class can be disabled for specific recipes using the :term:`RETAIN_ENABLED`
2746variable.
2747
2731.. _ref-classes-rm-work: 2748.. _ref-classes-rm-work:
2732 2749
2733``rm_work`` 2750``rm_work``