Add some debug output to build.
Put heapdump somewhere it can be found by bamboo