diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index b471938efe..fc9b83d080 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -380,7 +380,10 @@ def createJob( TEST_JOB_NAME, ARCH_OS ) { def setup() { stage('Setup') { setupEnv() - + if (env.SPEC.startsWith('osx')) { + echo "Switching Xcode to command line tools" + sh "sudo xcode-select --switch /" + } if (params.SDK_RESOURCE == 'nightly' && params.CUSTOMIZED_SDK_URL) { // remove single quote to allow variables to be set in CUSTOMIZED_SDK_URL CUSTOMIZED_SDK_URL_OPTION = "-c ${params.CUSTOMIZED_SDK_URL}"