From: David Galloway Date: Thu, 19 Aug 2021 20:57:47 +0000 (-0400) Subject: ceph-dev-*build: Notify shaman of a build sooner X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e909cab8d5540f14eb3d11a5f2b7f08fe84f451e;p=ceph-build.git ceph-dev-*build: Notify shaman of a build sooner Fixes: https://tracker.ceph.com/issues/18491 Signed-off-by: David Galloway --- diff --git a/ceph-dev-build/build/setup_rpm b/ceph-dev-build/build/setup_rpm index be71f142..c13b854c 100644 --- a/ceph-dev-build/build/setup_rpm +++ b/ceph-dev-build/build/setup_rpm @@ -21,18 +21,9 @@ if test $(id -u) != 0 ; then fi export LC_ALL=C # the following is vulnerable to i18n -$SUDO yum install -y redhat-lsb-core - -# unpack the tar.gz that contains the debian dir -cd dist -tar xzf *.orig.tar.gz -cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/) -pwd - -$SUDO yum install -y yum-utils +$SUDO yum install -y redhat-lsb-core yum-utils get_rpm_dist -setup_rpm_build_deps BRANCH=`branch_slash_filter $BRANCH` @@ -40,8 +31,6 @@ if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then exit 0 fi -cd $WORKSPACE - # Normalize variables across rpm/deb builds NORMAL_DISTRO=$DISTRO NORMAL_DISTRO_VERSION=$RELEASE @@ -50,6 +39,16 @@ NORMAL_ARCH=$ARCH # create build status in shaman create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH +# unpack the tar.gz that contains the debian dir +cd dist +tar xzf *.orig.tar.gz +cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/) +pwd + +setup_rpm_build_deps + +cd $WORKSPACE + pkgs=( "chacractl>=0.0.21" ) TEMPVENV=$(create_venv_dir) VENV=${TEMPVENV}/bin diff --git a/ceph-dev-new-build/build/setup_rpm b/ceph-dev-new-build/build/setup_rpm index 49338cff..c13b854c 100644 --- a/ceph-dev-new-build/build/setup_rpm +++ b/ceph-dev-new-build/build/setup_rpm @@ -21,16 +21,9 @@ if test $(id -u) != 0 ; then fi export LC_ALL=C # the following is vulnerable to i18n -$SUDO yum install -y redhat-lsb-core - -# unpack the tar.gz that contains the debian dir -cd dist -tar xzf *.orig.tar.gz -cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/) -pwd +$SUDO yum install -y redhat-lsb-core yum-utils get_rpm_dist -setup_rpm_build_deps BRANCH=`branch_slash_filter $BRANCH` @@ -38,8 +31,6 @@ if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then exit 0 fi -cd $WORKSPACE - # Normalize variables across rpm/deb builds NORMAL_DISTRO=$DISTRO NORMAL_DISTRO_VERSION=$RELEASE @@ -48,6 +39,16 @@ NORMAL_ARCH=$ARCH # create build status in shaman create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH +# unpack the tar.gz that contains the debian dir +cd dist +tar xzf *.orig.tar.gz +cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/) +pwd + +setup_rpm_build_deps + +cd $WORKSPACE + pkgs=( "chacractl>=0.0.21" ) TEMPVENV=$(create_venv_dir) VENV=${TEMPVENV}/bin