]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes: add new retain class for retaining build results
authorPaul Eggleton <paul.eggleton@microsoft.com>
Thu, 1 Aug 2024 04:10:22 +0000 (21:10 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Aug 2024 06:55:32 +0000 (07:55 +0100)
commite2030c0d747eb990b9ad10098c6b74d6f8f4e74e
tree3e3f6137512df904c2a8c4f118118cd535af9c03
parentf102511f3a7707d2564e17af5dfdb1406177d7bb
classes: add new retain class for retaining build results

If you are running your builds inside an environment where you don't
have access to the build tree (e.g. an autobuilder where you can only
download final artifacts such as images), then debugging build failures
can be difficult - you can't examine log files, the source tree or
output files. When enabled, by default this class will retain the work
directory for any recipe that has a task failure in the form of a
tarball, and can also be configured to save other directories on failure
or always.

It puts these tarballs in a configurable location (${TMPDIR}/retained by
default), where they can be picked up by a separate process and made
available as downloadable artifacts.

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/retain.bbclass [new file with mode: 0644]
meta/lib/oeqa/selftest/cases/retain.py [new file with mode: 0644]