]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-next: push built rpm binaries to chacra
authorAndrew Schoen <aschoen@redhat.com>
Wed, 21 Oct 2015 14:18:19 +0000 (09:18 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 21 Oct 2015 15:55:18 +0000 (10:55 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/build_rpm

index 693783ec6010403edb6b45dec74f8a06c5272d92..92f692aae7977085d8ed26eee065682624723aa6 100644 (file)
@@ -46,14 +46,17 @@ get_rpm_dist() {
     RedHatEnterpriseServer)
         RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
         DIST=rhel$RELEASE
+        DISTRO=rhel
         ;;
     CentOS)
         RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
         DIST=el$RELEASE
+        DISTRO=centos
         ;;
     Fedora)
         RELEASE=`$LSB_RELEASE --short --release`
         DIST=fc$RELEASE
+        DISTRO=fedora
         ;;
     SUSE\ LINUX)
         DESC=`$LSB_RELEASE --short --description`
@@ -61,14 +64,17 @@ get_rpm_dist() {
         case $DESC in
         *openSUSE*)
                 DIST=opensuse$RELEASE
+                DISTRO=opensuse
             ;;
         *Enterprise*)
                 DIST=sles$RELEASE
+                DISTRO=sles
                 ;;
             esac
         ;;
     *)
         DIST=unknown
+        DISTRO=unknown
         ;;
     esac
 
@@ -99,9 +105,8 @@ echo done
 # Make sure we execute at the top level directory
 cd "$WORKSPACE"
 
-#Collect Artifacts
-mkdir -p dist/rpm/${DIST}
-mv release/${vers}/rpm/*/SRPMS ./dist/rpm/${DIST}/.
-mv release/${vers}/rpm/*/RPMS/* ./dist/rpm/${DIST}/.
+# push binaries to chacra
+find release/${vers}/rpm/*/SRPMS | grep rpm | chacractl binary create ceph/${vers}/${DISTRO}/${RELEASE}/source
+find release/${vers}/rpm/*/RPMS/* | grep rpm | chacractl binary create ceph/${vers}/${DISTRO}/{$RELEASE}/${ARCH}
 
 echo "End Date: $(date)"