]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-*-build: reset CI_CONTAINER when building nautilus 1607/head
authorKefu Chai <kchai@redhat.com>
Thu, 2 Jul 2020 13:29:15 +0000 (21:29 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 2 Jul 2020 13:29:55 +0000 (21:29 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-dev-build/build/build_rpm
ceph-dev-new-build/build/build_rpm
scripts/build_utils.sh

index 73df1f5e11f50301c758477ecdce53be03754ce0..fff4a3b3f80aa11075ec3bcfb2a9513d49f2d105 100644 (file)
@@ -6,6 +6,8 @@ set -ex
 # set of shell scripts and repos involved.
 CI_CONTAINER=${CI_CONTAINER:-false}
 
+maybe_reset_ci_container
+
 # create a release directory for ceph-build tools
 mkdir -p release
 cp -a dist release/${vers}
index a9686642e3f012decdee5f0fa4004dfa639ede04..aaab10fe841535b58e55be64d530394a78dae40a 100644 (file)
@@ -7,6 +7,8 @@ set -ex
 # set of shell scripts and repos involved.
 CI_CONTAINER=${CI_CONTAINER:-false}
 
+maybe_reset_ci_container
+
 # create a release directory for ceph-build tools
 mkdir -p release
 cp -a dist release/${vers}
index b2f5298ef33a79b7e97376aaf6e2060180c179b9..e13af3fca7b3f43a0dba5db7a875560366165d11 100644 (file)
@@ -1072,3 +1072,12 @@ get_nr_build_jobs() {
     fi
     echo $n_build_jobs
 }
+
+maybe_reset_ci_container() {
+    # ceph-container includes ceph-mgr-cephadm by default, but nautilus does
+    # not ship this package
+    if [[ "$CI_CONTAINER" && "$BRANCH" =~ nautilus ]]; then
+        echo "disabling CI container build for $BRANCH"
+        CI_CONTAINER=false
+    fi
+}