From: Andrew Schoen Date: Fri, 5 Aug 2016 14:59:29 +0000 (-0500) Subject: start repo creation after all binaries are uploaded X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F423%2Fhead;p=ceph-build.git start repo creation after all binaries are uploaded Signed-off-by: Andrew Schoen --- diff --git a/ceph-build/build/build_deb b/ceph-build/build/build_deb index d8a1993d..29433705 100644 --- a/ceph-build/build/build_deb +++ b/ceph-build/build/build_deb @@ -71,6 +71,7 @@ bpvers=`gen_debian_version $debian_version $DIST` # look for a specific package to tell if we can avoid the build chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}/${ARCH}" +chacra_repo_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}" DEB_ARCH=`dpkg-architecture | grep DEB_BUILD_ARCH\= | cut -d '=' -f 2` chacra_check_url="${chacra_endpoint}/librados2_${bpvers}_${DEB_ARCH}.deb" @@ -189,4 +190,6 @@ echo lintian --allow-root $releasedir/$cephver/*$bpvers*.deb if [ "$THROWAWAY" = false ] ; then # push binaries to chacra find release/$vers/ | egrep "*\.(changes|deb|dsc|gz)$" | egrep -v "(Packages|Sources|Contents)" | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint} + # start repo creation + $VENV/chacractl repo update ${chacra_repo_endpoint} fi diff --git a/ceph-build/build/build_rpm b/ceph-build/build/build_rpm index 605bcdf8..16e6be4d 100644 --- a/ceph-build/build/build_rpm +++ b/ceph-build/build/build_rpm @@ -119,4 +119,6 @@ if [ "$THROWAWAY" = false ] ; then # push binaries to chacra find release/${vers}/rpm/*/SRPMS | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/source find release/${vers}/rpm/*/RPMS/* | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/${ARCH} + # start repo creation + $VENV/chacractl repo update ${chacra_endpoint} fi diff --git a/ceph-dev-build/build/build_deb b/ceph-dev-build/build/build_deb index c9dde1cb..937633cd 100644 --- a/ceph-dev-build/build/build_deb +++ b/ceph-dev-build/build/build_deb @@ -69,6 +69,7 @@ bpvers=`gen_debian_version $debian_version $DIST` # look for a specific package to tell if we can avoid the build chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}/${ARCH}" +chacra_repo_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}" DEB_ARCH=`dpkg-architecture | grep DEB_BUILD_ARCH\= | cut -d '=' -f 2` chacra_check_url="${chacra_endpoint}/librados2_${bpvers}_${DEB_ARCH}.deb" @@ -187,4 +188,6 @@ echo lintian --allow-root $releasedir/$cephver/*$bpvers*.deb if [ "$THROWAWAY" = false ] ; then # push binaries to chacra find release/$vers/ | egrep "*\.(changes|deb|dsc|gz)$" | egrep -v "(Packages|Sources|Contents)" | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint} + # start repo creation + $VENV/chacractl repo update ${chacra_repo_endpoint} fi diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index e6961b82..de981ecb 100644 --- a/ceph-dev-build/build/build_rpm +++ b/ceph-dev-build/build/build_rpm @@ -117,4 +117,6 @@ if [ "$THROWAWAY" = false ] ; then # push binaries to chacra find release/${vers}/rpm/*/SRPMS | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/source find release/${vers}/rpm/*/RPMS/* | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/${ARCH} + # start repo creation + $VENV/chacractl repo update ${chacra_endpoint} fi