0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-27 23:27:11 +01:00
mongodb/evergreen/run_jstestfuzz/clone_repos.sh
Udita 23426d6ab2 SERVER-95813: fix for github token issue (#28190)
GitOrigin-RevId: 603a9fb8e00f358033bdbb541281226577a31676
2024-10-17 19:41:39 +00:00

17 lines
420 B
Bash
Executable File

set -o errexit
set -o verbose
cd src
for i in {1..5}; do
git clone --depth 1 https://x-access-token:${github_token}@github.com/10gen/QA.git jstests/qa_tests && RET=0 && break || RET=$? && sleep 1
echo "Failed to clone github.com:10gen/QA.git, retrying..."
done
if [ $RET -ne 0 ]; then
echo "Failed to clone github.com/10gen/QA.git"
exit $RET
fi
cp -r src/mongo/db/modules/enterprise jstests/enterprise_tests