- ../../../scripts/build_utils.sh
- ../../build/setup_rpm
- ../../build/build_rpm
+ - ../../../scripts/build_container
- ../../../scripts/status_completed
publishers:
- postbuildscript:
echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/
fi
-
-# XXX perhaps use job parameters instead of literals; then
-# later stages can also use them to compare etc.
-if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; then
- loop=0
- ready=false
- while ((loop < 15)); do
- curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" > shaman.status
- if [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) && ($(jq -r '.[0].status' < shaman.status) == 'ready') ]] ; then ready=true; break; fi
- ((loop = loop + 1))
- sleep 60
- done
-
- if [[ "$ready" == "false" ]] ; then
- echo "FAIL: timed out waiting for shaman repo to be built: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/"
- # don't fail the build here on purpose
- # update_build_status "failed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
- # exit 1
- fi
- # get into $WORKSPACE/$dist/ceph-$cephver, where the copied source tree is
- cd ${WORKSPACE}/dist/ceph-${cephver}/container
- CEPH_SHA1=${SHA1} ./build.sh
-fi
- ../../../scripts/build_utils.sh
- ../../build/setup_rpm
- ../../build/build_rpm
+ - ../../../scripts/build_container
- ../../../scripts/status_completed
# osc build scripts
- shell:
echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/
fi
-
-# XXX perhaps use job parameters instead of literals; then
-# later stages can also use them to compare etc.
-# build container image that supports building crimson-osd
-if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; then
- loop=0
- ready=false
- while ((loop < 15)); do
- curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" > shaman.status
- if [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) && ($(jq -r '.[0].status' < shaman.status) == 'ready') ]] ; then ready=true; break; fi
- ((loop = loop + 1))
- sleep 60
- done
-
- if [[ "$ready" == "false" ]] ; then
- echo "FAIL: timed out waiting for shaman repo to be built: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/"
- # don't fail the build here on purpose
- # update_build_status "failed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
- # exit 1
- fi
- # get into $WORKSPACE/$dist/ceph-$cephver, where the copied source tree is
- cd ${WORKSPACE}/dist/ceph-${cephver}/container
- CEPH_SHA1=${SHA1} ./build.sh
-fi
setup_rpm_build_deps
-if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; then
- podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD $CONTAINER_REPO_HOSTNAME/$CONTAINER_REPO_ORGANIZATION
-fi
-
cd $WORKSPACE
pkgs=( "chacractl>=0.0.21" )
- ../../../scripts/setup_sccache.sh
- ../../build/setup_rpm
- ../../build/build_rpm
+ - ../../../scripts/build_container
- ../../../scripts/status_completed
# osc build scripts
- shell:
--- /dev/null
+#!/bin/bash
+# vim: ts=4 sw=4 expandtab
+set -ex
+PS4="\$(date --rfc-3339=seconds) + "
+
+# XXX perhaps use job parameters instead of literals; then
+# later stages can also use them to compare etc.
+# build container image that supports building crimson-osd
+if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; then
+ podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD $CONTAINER_REPO_HOSTNAME/$CONTAINER_REPO_ORGANIZATION
+ loop=0
+ ready=false
+ while ((loop < 15)); do
+ curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" > shaman.status
+ if [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) && ($(jq -r '.[0].status' < shaman.status) == 'ready') ]] ; then ready=true; break; fi
+ ((loop = loop + 1))
+ sleep 60
+ done
+
+ if [[ "$ready" == "false" ]] ; then
+ chacra_endpoint="ceph/${BRANCH}/${SHA1}/${DISTRO}/${RELEASE}"
+ echo "FAIL: timed out waiting for shaman repo to be built: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/"
+ # don't fail the build here on purpose
+ # update_build_status "failed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
+ # exit 1
+ fi
+ # get into $WORKSPACE/$dist/ceph-$cephver, where the copied source tree is
+ cd ${WORKSPACE}/dist/ceph-${cephver}/container
+ CEPH_SHA1=${SHA1} ./build.sh
+fi