mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
install-deps.sh: Fail when downloading apt repos
More specifically, if we get e.g. a 504 while attempting to download a .list file, fail the build and log the status code. Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
parent
94699750e2
commit
349a92bdb7
@ -134,7 +134,8 @@ function install_pkg_on_ubuntu {
|
||||
fi
|
||||
if test -n "$missing_pkgs"; then
|
||||
local shaman_url="https://shaman.ceph.com/api/repos/${project}/master/${sha1}/ubuntu/${codename}/repo"
|
||||
$SUDO curl --silent --location $shaman_url --output /etc/apt/sources.list.d/$project.list
|
||||
in_jenkins && echo -n "CI_DEBUG: Downloading $shaman_url ... "
|
||||
$SUDO curl --silent --fail --write-out "%{http_code}" --location $shaman_url --output /etc/apt/sources.list.d/$project.list
|
||||
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true
|
||||
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --allow-unauthenticated -y $missing_pkgs
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user