From 9cdd0f946f182960420b3b3352fc6978e5b61ae6 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 25 Nov 2021 14:22:55 -0300 Subject: [PATCH] Build script clarifications --- .ci/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/build.sh b/.ci/build.sh index ad3fa279c..fb6b2563a 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -299,9 +299,11 @@ esac git_hash=$(git rev-parse --short HEAD 2> /dev/null) if [ "$CI" = "true" ] then + # Backup strategy when running under Jenkins. [ -z "$git_hash" ] && git_hash=$(echo $GIT_COMMIT | cut -c 1-8) elif [ ! -z "$git_hash" ] then + # Append + to denote a dirty tree. git diff --quiet 2> /dev/null || git_hash="$git_hash+" fi [ ! -z "$git_hash" ] && cmake_flags_extra="$cmake_flags_extra -D \"EMU_GIT_HASH=$git_hash\""