SERVER-96398 Switch githash tagging to evergreen only (#30035)

GitOrigin-RevId: 613a6ba0f66140e17359696c88f549e4945fea2f
This commit is contained in:
Zack Winter 2024-12-06 16:53:08 -08:00 committed by MongoDB Bot
parent 0458bb996f
commit be2110a71c
2 changed files with 2 additions and 6 deletions

View File

@ -23,9 +23,11 @@ if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "win32" ]]; then
abs_path=$(cygpath -w "$TMPDIR" | tr '\\' '/')
echo "startup --output_user_root=Z:/bazel_tmp" > .bazelrc.evergreen
echo "BAZELISK_HOME=${abs_path}/bazelisk_home" >> .bazeliskrc
echo "build --define GIT_COMMIT_HASH=$(git rev-parse HEAD)" >> .bazelrc.gitinfo
else
echo "startup --output_user_root=${TMPDIR}/bazel-output-root" > .bazelrc.evergreen
echo "BAZELISK_HOME=${TMPDIR}/bazelisk_home" >> .bazeliskrc
echo "build --define GIT_COMMIT_HASH=$(git rev-parse HEAD)" >> .bazelrc.gitinfo
fi
uri="https://spruce.mongodb.com/task/${task_id:?}?execution=${execution:?}"

View File

@ -19,12 +19,6 @@ if [[ -z "${BAZELISK_SKIP_WRAPPER}" ]]; then
exit 0
fi
# TODO(SERVER-96398): Apply this to Windows when we find a way to do perfect argument forwarding
# in a batch file.
if [ -d .git ]; then
echo "build --define GIT_COMMIT_HASH=$(git rev-parse HEAD)" > .bazelrc.gitinfo
fi
if [[ $OSTYPE == darwin* ]]; then
echo "Running on Apple (darwin), creating .bazelrc for xcode settings." >&2
xcode_path=$(xcode-select -p) >&2