Skip to content

Commit

Permalink
[CI] If the xcode path is not present, use the default. (#12292)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jul 29, 2021
1 parent dab0f2e commit 448cc6e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/devops/automation/templates/build/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ steps:
timeoutInMinutes: 30
enabled: true

# was the current xcode deleted (has happened due to a bug in the clean step)? then set the default so
# that we can call make and generated the provisionator config files.
- bash: |
XCODE_SELECT=$(xcode-select -p)
if [[ -d $XCODE_SELECT ]]; then
echo "Using Xcode in path $XCODE_SELECT"
else
echo "Setting Xcode to point to the default location."
xcode-select -s "/Applications/Xcode.app/Contents/Developer"
fi
displayName: 'Ensure Xcode is selected.'

- bash: |
make -C $(Build.SourcesDirectory)/xamarin-macios/tools/devops build-provisioning.csx
displayName: 'Generate provisionator files.'
Expand Down

1 comment on commit 448cc6e

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent XAMBOT-1033.BigSur'
[CI] If the xcode path is not present, use the default. (#12292)

Please sign in to comment.