SERVER-96398 Switch githash tagging to evergreen only (#30035)
GitOrigin-RevId: 613a6ba0f66140e17359696c88f549e4945fea2f
This commit is contained in:
parent
0458bb996f
commit
be2110a71c
@ -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:?}"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user