test: use non-deprecated gitlab CI variables
CI_BUILD_ID was replaced with CI_JOB_ID in gitlab 9+.
This commit is contained in:
parent
0335db645b
commit
c7d2eaa5f7
10 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue