add default capability to macos (#5915)

This is the macOS part of #5912, which I have separated because our
macOS nodes have a different deployment process so it seemed easier to
track the deployment of the change separately.

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Gary Verhaegen 2020-11-25 15:34:33 +01:00 committed by GitHub
parent a0ccfdb80e
commit b23304c691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -134,6 +134,7 @@ jobs:
timeoutInMinutes: 360
pool:
name: macOS-pool
demands: assignment -equals default
variables:
release_sha: $[ dependencies.check_for_release.outputs['out.release_sha'] ]
release_tag: $[ coalesce(dependencies.check_for_release.outputs['out.release_tag'], '0.0.0') ]
@ -239,6 +240,7 @@ jobs:
timeoutInMinutes: 360
pool:
name: macOS-pool
demands: assignment -equals default
steps:
- template: ci/report-start.yml
- template: ci/clear-shared-segments-macos.yml

View File

@ -44,8 +44,7 @@ jobs:
pool: macOS-pool
pool:
name: $(pool)
${{ if eq(variables['pool'], 'linux-pool') }}:
demands: assignment -equals default
demands: assignment -equals default
steps:
- checkout: self
- ${{ if eq(variables['pool'], 'macos-pool') }}:

View File

@ -33,6 +33,7 @@ VSTS_TOKEN=$1
mkdir -p ~/agent
cd ~/agent
echo 'assignment=default' > .capabilities
echo Determining matching VSTS agent...
VSTS_AGENT_RESPONSE=\$(curl -sSfL \