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

@ -52,7 +52,7 @@ trap cleanup EXIT
CI="${CI:-false}"
if [[ "$CI" == true ]]; then
# in CI, imitate GenerateCIArtifactName() from internal/test/helpers.go
TEST_ID="$DISTRO_CODE-$ARCH-$CI_COMMIT_BRANCH-$CI_BUILD_ID"
TEST_ID="$DISTRO_CODE-$ARCH-$CI_COMMIT_BRANCH-$CI_JOB_ID"
else
# if not running in Jenkins, generate ID not relying on specific env variables
TEST_ID=$(uuidgen);