diff --git a/tools/jenkins/run_jenkins.sh b/tools/jenkins/run_jenkins.sh
index 15603c2eec02eb179b1962272baa4de004aafaee..49b2fa55c2db22230726aeb644a0d72c5d618451 100755
--- a/tools/jenkins/run_jenkins.sh
+++ b/tools/jenkins/run_jenkins.sh
@@ -69,6 +69,9 @@ elif [ "$platform" == "macos" ]
 then
   echo "building $language on MacOS"
 
+  # Prevent msbuild from picking up "platform" env variable, which would break the build
+  unset platform
+
   ./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true"
 
 elif [ "$platform" == "freebsd" ]