build doesn't fail if packaging fails
tools - gate/build tools
At present, the build doesn't fail if packaging fails. It really really should.
This might be as simple as nightly not setting $build_ok as it ought.