From 6e3fb6fb85e5c4651ca18b5586be256fa1c9cc63 Mon Sep 17 00:00:00 2001 From: Haroon Khel Date: Thu, 12 Oct 2023 16:27:55 +0100 Subject: [PATCH] switch to command line tools xcode before running tests on mac --- buildenv/jenkins/JenkinsfileBase | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"