When one is performing Gentoo builds inside a CI/CD
container (inside another
container) and a build fails it is sometimes desirable to create a bug report
at bugs.gentoo.org. Often the Gentoo developers
require that you include the error output and build logs. However getting the
logs out of the container can be tedious. For my builds I've added a
step
which gathers the Jenkins build output, portage build.log
file(s) and
emerge --info
output and attaches them to an email so that they can be used
in bug reports.