define-compose-url: change to development for 8.x

The nightly compose (currently) only has a 'latest' directory for 8.7.
Switching to the development composes which have 'latest' for 8.4
onwards.

Enable -x in script for easier troubleshooting.
This commit is contained in:
Achilleas Koutsou 2022-03-26 17:19:47 +01:00 committed by Ondřej Budai
parent f2849e2165
commit 5261987726

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -euo pipefail
set -euxo pipefail
source /etc/os-release
# This isn't needed when not running on RHEL
@ -8,10 +8,10 @@ if [[ $ID != rhel ]]; then
fi
if [[ $ID == rhel && ${VERSION_ID%.*} == 8 ]]; then
COMPOSE_ID=$(curl -L http://download.eng.bos.redhat.com/rhel-8/nightly/RHEL-8/latest-finished-RHEL-"${VERSION_ID}"/COMPOSE_ID)
COMPOSE_ID=$(curl -L http://download.eng.bos.redhat.com/rhel-8/development/RHEL-8/latest-RHEL-"${VERSION_ID}"/COMPOSE_ID)
# default to a nightly tree but respect values passed from ENV so we can test rel-eng composes as well
COMPOSE_URL="${COMPOSE_URL:-http://download.eng.bos.redhat.com/rhel-8/nightly/RHEL-8/$COMPOSE_ID}"
COMPOSE_URL="${COMPOSE_URL:-http://download.eng.bos.redhat.com/rhel-8/development/RHEL-8/$COMPOSE_ID}"
elif [[ $ID == rhel && ${VERSION_ID%.*} == 9 ]]; then
COMPOSE_ID=$(curl -L http://download.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-"${VERSION_ID}"/COMPOSE_ID)