]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build: post status to shaman earlier for rpm builds
authorAndrew Schoen <aschoen@redhat.com>
Wed, 11 Jan 2017 15:33:04 +0000 (09:33 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 11 Jan 2017 15:33:04 +0000 (09:33 -0600)
We recently had an issue where we had a networking issue getting epel
packages and the build failed before any status was sent to shaman. This
fix should avoid that and post earlier in the build script.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-dev-new-build/build/setup_rpm

index 4538424820b0bf16df11e8d2d7764a5a26e5b303..78004d42d1a674009926822d5f9d941de07b6524 100644 (file)
@@ -29,24 +29,6 @@ tar xzf *.orig.tar.gz
 cd ceph-*
 pwd
 
-case $(lsb_release -si) in
-CentOS|Fedora|SUSE*|RedHatEnterpriseServer)
-        case $(lsb_release -si) in
-            SUSE*)
-                $SUDO zypper -y yum-utils
-                ;;
-            *)
-                $SUDO yum install -y yum-utils
-                ;;
-        esac
-        sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
-        $SUDO yum-builddep -y $DIR/ceph.spec
-        ;;
-*)
-        echo "$(lsb_release -si) is unknown, dependencies will have to be installed manually."
-        ;;
-esac
-
 BRANCH=`branch_slash_filter $BRANCH`
 
 if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then
@@ -110,6 +92,24 @@ NORMAL_ARCH=$ARCH
 # create build status in shaman
 create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
 
+case $(lsb_release -si) in
+CentOS|Fedora|SUSE*|RedHatEnterpriseServer)
+        case $(lsb_release -si) in
+            SUSE*)
+                $SUDO zypper -y yum-utils
+                ;;
+            *)
+                $SUDO yum install -y yum-utils
+                ;;
+        esac
+        sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+        $SUDO yum-builddep -y $DIR/ceph.spec
+        ;;
+*)
+        echo "$(lsb_release -si) is unknown, dependencies will have to be installed manually."
+        ;;
+esac
+
 pkgs=( "chacractl>=0.0.4" )
 install_python_packages "pkgs[@]"