]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes: add class for retaining build results paule/retain
authorPaul Eggleton <paul.eggleton@microsoft.com>
Wed, 8 Jul 2020 04:46:17 +0000 (04:46 +0000)
committerPaul Eggleton <paul.eggleton@linux.microsoft.com>
Wed, 14 Oct 2020 02:24:40 +0000 (19:24 -0700)
commit805e5f50760610e9d8fc0531c96ec8b74371892b
tree026ebface3034c82b67680cfd8c9293f078371f8
parent8d78b819c2ec33fce3a34254fa90864ee5fa7617
classes: add 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, this class does two things:

1) Triggers on task failure and saves a tarball of the work directory
   for the task's recipe
2) Optionally saves tarballs of a list of nominated directories

It puts these tarballs in a configurable location, 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>
meta/classes/retain.bbclass [new file with mode: 0644]