tests/ci: split nightly testing based on RHEL major version
Using just the major version from the $VERSION_ID and defining new CI variable $RHEL_MAJOR.
This commit is contained in:
parent
ea97adfdf8
commit
14b7e92eaa
5 changed files with 42 additions and 33 deletions
|
|
@ -8,16 +8,16 @@ if [[ $ID != rhel ]]; then
|
|||
fi
|
||||
|
||||
if [[ $ID == rhel && ${VERSION_ID%.*} == 8 ]]; then
|
||||
COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-finished-RHEL-8.6/COMPOSE_ID)
|
||||
COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-finished-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.devel.redhat.com/rhel-8/nightly/RHEL-8/$COMPOSE_ID}"
|
||||
|
||||
elif [[ $ID == rhel && ${VERSION_ID%.*} == 9 ]]; then
|
||||
COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-9/nightly/RHEL-9-Beta/latest-RHEL-9.0/COMPOSE_ID)
|
||||
COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/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.devel.redhat.com/rhel-9/nightly/RHEL-9-Beta/$COMPOSE_ID}"
|
||||
COMPOSE_URL="${COMPOSE_URL:-http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/$COMPOSE_ID}"
|
||||
fi
|
||||
|
||||
# in case COMPOSE_URL was defined from the outside refresh COMPOSE_ID file,
|
||||
|
|
|
|||
|
|
@ -90,12 +90,12 @@ esac
|
|||
|
||||
# overrides for RHEL nightly builds testing
|
||||
VERSION_SUFFIX=$(echo "${VERSION_ID}" | tr -d ".")
|
||||
if [ -f "rhel-8.json" ]; then
|
||||
sudo cp rhel-8.json "$REPODIR/rhel-${VERSION_SUFFIX}.json"
|
||||
if [ -f "rhel-${VERSION_ID%.*}.json" ]; then
|
||||
sudo cp rhel-"${VERSION_ID%.*}".json "$REPODIR/rhel-${VERSION_SUFFIX}.json"
|
||||
fi
|
||||
|
||||
if [ -f "rhel-8-beta.json" ]; then
|
||||
sudo cp rhel-8-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json"
|
||||
if [ -f "rhel-${VERSION_ID%.*}-beta.json" ]; then
|
||||
sudo cp rhel-"${VERSION_ID%.*}"-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json"
|
||||
fi
|
||||
|
||||
# Generate all X.509 certificates for the tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue