From 078359dd3ffa1c0aadd00b3291946a72ba761ee0 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 13 Apr 2026 04:07:06 -0300 Subject: [PATCH] ci: avoid git safe-directory issue in image tag --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7044dbd..3567fcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -268,7 +268,7 @@ NODE sh ''' set -eu . build/version.env - SHORT_SHA="$(git rev-parse --short HEAD)" + SHORT_SHA="$(printf '%s' "${GIT_COMMIT:-nohash}" | cut -c1-8)" IMAGE_TAG="${APP_VERSION}-${BUILD_NUMBER}-${SHORT_SHA}" printf '%s' "${HARBOR_PASSWORD}" | docker login registry.bstein.dev -u "${HARBOR_USERNAME}" --password-stdin