Add post-failed-build-commands to grab core dumps
authorSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 18:36:47 +0000 (19:36 +0100)
committerSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 18:36:47 +0000 (19:36 +0100)
Depends on my locally-patched sbuild to work, for now

build-config/sbuild/sbuild.conf

index c2211b1..ea19347 100644 (file)
@@ -559,6 +559,7 @@ $external_commands = {
                         'chroot-update-failed-commands' => [],
                         'finished-build-commands' => [],
                         'post-build-commands' => ['%SBUILD_CHROOT_EXEC sh -c "cd %b && find . -type f -name core | xargs tar cf - " | cat > %d-core.tar; if [ ! -s %d-core.tar ]; then rm -f %d-core.tar; else gzip -9 %d-core.tar; fi'],
+                        'post-failed-build-commands' => ['%SBUILD_CHROOT_EXEC sh -c "cd %b && find . -type f -name core | xargs tar cf - " | cat > %d-core.tar; if [ ! -s %d-core.tar ]; then rm -f %d-core.tar; else gzip -9 %d-core.tar; fi'],
                         'pre-build-commands' => [],
                         'starting-build-commands' => ['ulimit -c'],
 };