From: David Galloway Date: Fri, 26 Aug 2022 17:35:21 +0000 (-0400) Subject: sync-pull: Automate download.ceph.com tarball upload X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7658b7d0f4cc099b2e8d4386d18cb2dce8788459;p=ceph-build.git sync-pull: Automate download.ceph.com tarball upload I swapped the paths in `for endpoint in` because there may not be a centos/9 repo. That means `$version` gets left unset and isn't available to `get-tarballs.sh` later in the script. Signed-off-by: David Galloway --- diff --git a/scripts/sync-pull b/scripts/sync-pull index 520defae..7d381d90 100644 --- a/scripts/sync-pull +++ b/scripts/sync-pull @@ -27,7 +27,7 @@ echo "Found the most packages ($current_highest_count) in $highest_combo." # Check the the DEB and RPM chacra endpoints to see if the repos are or need updating. # This helps prevent packages from getting missed when signing and pushing. need_rerun=false -for endpoint in https://chacra.ceph.com/repos/$project/$release/$sha1/$highest_combo https://chacra.ceph.com/repos/$project/$release/$sha1/centos/{7,8,9}; do +for endpoint in https://chacra.ceph.com/repos/$project/$release/$sha1/centos/{7,8,9} https://chacra.ceph.com/repos/$project/$release/$sha1/$highest_combo; do chacra_repo_status=$(curl -s -L $endpoint) # python is only used here because jq isn't installed on the signer box chacra_needs_update=$(echo $chacra_repo_status | python -mjson.tool | grep needs_update | awk '{ print $2 }' | sed 's/,$//') @@ -70,6 +70,8 @@ for el_version in 7 8 9; do rsync -Lavh -e 'ssh -p 2222' --progress $el_cmd done +ssh signer@download.ceph.com "/home/signer/bin/get-tarballs.sh $release $sha1 $version" + if $need_rerun; then echo echo "********************************************"