Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to command line tools xcode before running tests on mac #4809

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down