]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes: add workdir_save class paule/workdir_save
authorPaul Eggleton <paul.eggleton@linux.microsoft.com>
Wed, 8 Jul 2020 17:57:39 +0000 (10:57 -0700)
committerPaul Eggleton <paul.eggleton@linux.microsoft.com>
Wed, 8 Jul 2020 17:57:59 +0000 (10:57 -0700)
commit8a17db382b6b7fde9d5dddebb0fc410dc35b5088
treed568b3695b9ecee076d8e517ac95f4f15ad7ef03
parentb3c96103a5063eeefb0c537227eab3f77616b9c0
classes: add workdir_save class

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, this class triggers on task failure and saves a
tarball of the work directory for the task's recipe and puts it in a
configurable location, where it can be picked up by a separate process
and made available as a downloadable artifact.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
meta/classes/workdir_save.bbclass [new file with mode: 0644]