Build on Any Branch So you want to build a release branch of MongoDB? Let's get you started. Set two bash variables and run: export VERSION_BRANCH=v4.0 export MONGO_REPO=... ./build-on-branch.sh install-core