]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: Report build status to shaman 1402/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 2 Oct 2019 17:20:02 +0000 (13:20 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 2 Oct 2019 18:33:56 +0000 (14:33 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
kernel/build/build_deb
kernel/build/build_rpm
kernel/build/setup

index 3d86fa14408b9c60d34dc5ed14e83ced2158291e..59a9d6333b1be54a2e0126a668d7b6c96130d8cd 100644 (file)
@@ -121,3 +121,6 @@ EOF
 
     echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}
 fi
+
+# update shaman with the completed build status
+update_build_status "completed" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH
index 2f8df569801969872594a07c50da2d4529807b70..0699c9d38841d7f87312d4596f598bedb3eb0407 100644 (file)
@@ -104,3 +104,6 @@ EOF
 
     echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}
 fi
+
+# update shaman with the completed build status
+update_build_status "completed" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH
index c3dc1c625b00f4190b4fd091cdcc189da97c82fe..987206859b86688e94c5e58c352cd54b84fd51a3 100644 (file)
@@ -33,12 +33,22 @@ if test -f /etc/redhat-release ; then
     $SUDO yum install -y redhat-lsb-core
     $SUDO yum install -y elfutils-libelf-devel  # for ORC unwinder
     $SUDO yum install -y flex bison  # for Kconfig
+
+    # Set vars for shaman status updating
+    get_rpm_dist
+    NORMAL_DISTRO=$DISTRO
+    NORMAL_DISTRO_VERSION=$DISTRO_VERSION
 fi
 
 if which apt-get > /dev/null ; then
     $SUDO apt-get install -y lsb-release
     $SUDO apt-get install -y libelf-dev  # for ORC unwinder
     $SUDO apt-get install -y flex bison  # for Kconfig
+
+    # Set vars for shaman status updating
+    DISTRO=$(lsb_release -si)
+    NORMAL_DISTRO=${DISTRO,,}
+    NORMAL_DISTRO_VERSION=$AVAILABLE_DIST
 fi
 
 case $(lsb_release -si) in
@@ -71,3 +81,6 @@ cd "$WORKSPACE"
 
 # Clean the git repo
 git clean -fxd
+
+# create build status in shaman
+create_build_status "started" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH