]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-*build: Notify shaman of a build sooner 1896/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 19 Aug 2021 20:57:47 +0000 (16:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 19 Aug 2021 20:57:47 +0000 (16:57 -0400)
Fixes: https://tracker.ceph.com/issues/18491
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-dev-build/build/setup_rpm
ceph-dev-new-build/build/setup_rpm

index be71f14202c61cfb50050ef08ad55ef2143c5594..c13b854cdb97f711390c65684ed6ae472d79079d 100644 (file)
@@ -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
index 49338cffbb5640ba9c711773ea6f55425fabb46f..c13b854cdb97f711390c65684ed6ae472d79079d 100644 (file)
@@ -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