]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build: fail, if building containers fail 1603/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 25 Jun 2020 12:22:02 +0000 (14:22 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 25 Jun 2020 15:52:17 +0000 (17:52 +0200)
This avoids:

* unnecessary breakages in the master branch
* unnecessary pulpito runs due to failing containers

Let's fail early, instead of later in the pulpilto runs.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
ceph-dev-build/build/build_rpm
ceph-dev-new-build/build/build_rpm

index 8982acbce00a6f01dadbc7b64d0f2454f246b8c4..73df1f5e11f50301c758477ecdce53be03754ce0 100644 (file)
@@ -203,8 +203,7 @@ if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && $FLAVOR == "default" ]]
     fi
 
     cd $WORKSPACE/ceph-container
-    # avoid failing the build if build-push fails
-    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} /bin/bash ./contrib/build-push-ceph-container-imgs.sh || /bin/true
+    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} /bin/bash ./contrib/build-push-ceph-container-imgs.sh
     cd $WORKSPACE
     sudo rm -rf ceph-container
 fi
index 6f5a240e9cd69c203a82bf4d606d0ddf2347bd64..a9686642e3f012decdee5f0fa4004dfa639ede04 100644 (file)
@@ -205,8 +205,7 @@ if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && $FLAVOR != "notcmalloc"
     fi
 
     cd $WORKSPACE/ceph-container
-    # avoid failing the build if build-push fails
-    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} /bin/bash ./contrib/build-push-ceph-container-imgs.sh || /bin/true
+    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} /bin/bash ./contrib/build-push-ceph-container-imgs.sh
     cd $WORKSPACE
     sudo rm -rf ceph-container
 fi