From: Andrew Schoen Date: Wed, 21 Oct 2015 14:18:19 +0000 (-0500) Subject: ceph-build-next: push built rpm binaries to chacra X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c51f13cb5bb147ff43b15ca2196f6ee5454a9e98;p=ceph-build.git ceph-build-next: push built rpm binaries to chacra Signed-off-by: Andrew Schoen --- diff --git a/ceph-build-next/build/build_rpm b/ceph-build-next/build/build_rpm index 693783ec..92f692aa 100644 --- a/ceph-build-next/build/build_rpm +++ b/ceph-build-next/build/build_rpm @@ -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)"