From: Patrick Donnelly Date: Fri, 4 Jun 2021 16:31:19 +0000 (-0700) Subject: script: update repo url for multi-arch builds X-Git-Tag: v17.1.0~1743^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=472bc091ad7165d80ac6f650dadb651ae91a3366;p=ceph.git script: update repo url for multi-arch builds Brad suggested this change based on his commit [1]. Thank you! [1] https://github.com/ceph/ceph-ansible/commit/267cce9e8360fc8cb9c192fde2406e5dca724610 Signed-off-by: Patrick Donnelly --- diff --git a/src/script/ceph-debug-docker.sh b/src/script/ceph-debug-docker.sh index dc6eebeb2d1e4..7941cd46844bb 100755 --- a/src/script/ceph-debug-docker.sh +++ b/src/script/ceph-debug-docker.sh @@ -84,7 +84,11 @@ function main { T=$(mktemp -d) pushd "$T" - repo_url="https://shaman.ceph.com/api/repos/ceph/${branch}/${sha}/${env/://}/flavors/${FLAVOR}/repo" + distro="${env/://}" + api_url="https://shaman.ceph.com/api/search/?status=ready&project=ceph&flavor=${FLAVOR}&distros=${distro}/x86_64&ref=${branch}&sha1=${sha}" + repo_url="$(wget -O - "$api_url" | jq -r '.[0].chacra_url')repo" + # validate url: + wget -O /dev/null "$repo_url" if grep ubuntu <<<"$env" > /dev/null 2>&1; then # Docker makes it impossible to access anything outside the CWD : / wget -O cephdev.asc 'https://download.ceph.com/keys/autobuild.asc'