]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev*build: Delete ceph-container dir on failure 1604/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 29 Jun 2020 15:36:51 +0000 (11:36 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 29 Jun 2020 15:36:51 +0000 (11:36 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-dev-build/build/failure
ceph-dev-new-build/build/failure

index 6274d32e96b074ab24866f8d4633297c4415b515..dcd38ebf6b82592f3fb0b4b4d40ea0c4a10d1086 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+# The ceph-container dir is supposed to get deleted in the build_rpm script.
+# We used to add '|| true' to the container build so the dir would still get
+# deleted even if it failed.  This changed in https://github.com/ceph/ceph-build/pull/1603
+# So now we need to delete the directory or the Wipe Workspace plugin will fail on the next build.
+cd $WORKSPACE
+sudo rm -rf ceph-container
+
 # note: the failed_build_status call relies on normalized variable names that
 # are infered by the builds themselves. If the build fails before these are
 # set, they will be posted with empty values
index 6274d32e96b074ab24866f8d4633297c4415b515..dcd38ebf6b82592f3fb0b4b4d40ea0c4a10d1086 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+# The ceph-container dir is supposed to get deleted in the build_rpm script.
+# We used to add '|| true' to the container build so the dir would still get
+# deleted even if it failed.  This changed in https://github.com/ceph/ceph-build/pull/1603
+# So now we need to delete the directory or the Wipe Workspace plugin will fail on the next build.
+cd $WORKSPACE
+sudo rm -rf ceph-container
+
 # note: the failed_build_status call relies on normalized variable names that
 # are infered by the builds themselves. If the build fails before these are
 # set, they will be posted with empty values