From b53ee7d300133d8d6a776ea9b6c598c9be7b1f71 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 5 Aug 2016 09:59:29 -0500 Subject: [PATCH] start repo creation after all binaries are uploaded Signed-off-by: Andrew Schoen --- ceph-build/build/build_deb | 3 +++ ceph-build/build/build_rpm | 2 ++ ceph-dev-build/build/build_deb | 3 +++ ceph-dev-build/build/build_rpm | 2 ++ 4 files changed, 10 insertions(+) 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 -- 2.47.3