about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-07-11 15:04:13 +0200
committerNikita Popov <npopov@redhat.com>2025-07-11 15:05:14 +0200
commit34426dce3d05e2e5c8c7116809291403ba4cbc00 (patch)
treec40a1a3f30c4bbda8d285427ea949f868ca8f1cf
parent119574f83576dc1f3ae067f9a97986d4e2b0826c (diff)
downloadrust-34426dce3d05e2e5c8c7116809291403ba4cbc00.tar.gz
rust-34426dce3d05e2e5c8c7116809291403ba4cbc00.zip
Fix fallback for CI_JOB_NAME
If CI_JOB_NAME is not specified, it's supposed to fall back to
the image name, which is `$image`, not `$IMAGE`.

Failing to set the correct CI_JOB_NAME causes failures when running
`dist-ohos-*` images locally.
-rwxr-xr-xsrc/ci/docker/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh
index 4e69fb2f370..da7d084d48d 100755
--- a/src/ci/docker/run.sh
+++ b/src/ci/docker/run.sh
@@ -361,7 +361,7 @@ docker \
   --env TOOLSTATE_REPO \
   --env TOOLSTATE_PUBLISH \
   --env RUST_CI_OVERRIDE_RELEASE_CHANNEL \
-  --env CI_JOB_NAME="${CI_JOB_NAME-$IMAGE}" \
+  --env CI_JOB_NAME="${CI_JOB_NAME-$image}" \
   --env CI_JOB_DOC_URL="${CI_JOB_DOC_URL}" \
   --env BASE_COMMIT="$BASE_COMMIT" \
   --env DIST_TRY_BUILD \