]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: post build status on rpm builds
authorAlfredo Deza <adeza@redhat.com>
Wed, 28 Sep 2016 19:07:11 +0000 (15:07 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 28 Sep 2016 20:30:31 +0000 (16:30 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-dev-build/build/build_rpm

index 9c19708df3c8cbc2b69f300f2eade15bd2cfd199..8be37435b2a3fa899532aaafcd70d81db7e56718 100644 (file)
@@ -56,6 +56,15 @@ get_rpm_dist() {
 }
 
 get_rpm_dist
+
+# Normalize variables across rpm/deb builds
+NORMAL_DISTRO=$DISTRO
+NORMAL_DISTRO_VERSION=$RELEASE
+NORMAL_ARCH=$ARCH
+
+# create build status in shaman
+create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
+
 dist=$DIST
 [ -z "$dist" ] && echo no dist && exit 1
 echo dist $dist
@@ -261,3 +270,6 @@ EOF
 
     echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/
 fi
+
+# update shaman with the completed build status
+update_build_status "completed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH