test: use non-deprecated gitlab CI variables

CI_BUILD_ID was replaced with CI_JOB_ID in gitlab 9+.
This commit is contained in:
Sanne Raymaekers 2023-05-11 22:48:09 +02:00 committed by Achilleas Koutsou
parent 0335db645b
commit c7d2eaa5f7
10 changed files with 11 additions and 11 deletions

View file

@ -5,8 +5,8 @@ set -euo pipefail
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
if [[ -n "$CI_BUILD_ID" ]]; then
BUILD_ID="${BUILD_ID:-${CI_BUILD_ID}}"
if [[ -n "$CI_JOB_ID" ]]; then
BUILD_ID="${BUILD_ID:-${CI_JOB_ID}}"
else
BUILD_ID="${BUILD_ID:-$(uuidgen)}"
fi