From 2cabaa547717cc7a48a29c2ef9fb65c8beb30d98 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 7 Jun 2021 13:06:21 +0300 Subject: [PATCH] tests: Use CI_BUILD_ID, not CI_PIPELINE_ID. Fixes #1448 PIPELINE_ID is the same across different jobs running in the same pipeline while BUILD_ID is unique for every job. Note: In the case where we have 1 test script/runner CI_BUILD_ID == CI_JOB_ID --- test/cases/azure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/azure.sh b/test/cases/azure.sh index 071a81a30..b6ea55c81 100755 --- a/test/cases/azure.sh +++ b/test/cases/azure.sh @@ -4,7 +4,7 @@ set -euo pipefail source /etc/os-release DISTRO_CODE="${DISTRO_CODE:-${ID}_${VERSION_ID//./}}" BRANCH_NAME="${BRANCH_NAME:-${CI_COMMIT_BRANCH}}" -BUILD_ID="${BUILD_ID:-${CI_PIPELINE_ID}}" +BUILD_ID="${BUILD_ID:-${CI_BUILD_ID}}" # Colorful output. function greenprint {