]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commit
build-ceph-{deb-native,rpm}.sh: Clean up build directories on failure wip-cleanup-builddir 65/head
authorDan Mick <dan.mick@redhat.com>
Sat, 17 Oct 2015 01:01:33 +0000 (18:01 -0700)
committerDan Mick <dan.mick@redhat.com>
Sat, 17 Oct 2015 01:06:23 +0000 (18:06 -0700)
commit20b80e6283d55cadf736bbdbffcc93887c05d74b
tree28ab871d0e422e1cd9986b13f6ab216ff3fbf3f9
parente94529496b1414ccd1c87c5617696cdbb667c567
build-ceph-{deb-native,rpm}.sh: Clean up build directories on failure

A recent change to a wip branch was leaving a .git file (as in a submodule
pointer to ../../.git/modules/) behind in the out~ or rpmbuild/BUILD
dirs when failing the build, and then because these scripts both have -e,
they immediately exited.

Then, when the next build came around, it tried "git clean", which
recursed into the build dir, found the .git, tried to dereference into
the ultimate dir, and failed.

Harden against this sort of failure by making sure to remove the workdir
immediately, and then fail, when the actual build worker fails.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
build-ceph-deb-native.sh
build-ceph-rpm.sh