@@ -11,16 +11,14 @@ parameters:
1111 # See /eng/common/templates/job/source-build.yml
1212 jobNamePrefix : ' Source_Build'
1313
14- # If changed to true, causes this template to include the default platform for a managed-only
15- # repo. The exact Docker image used for this build will be provided by Arcade. This has some risk,
16- # but since the repo is supposed to be managed-only, the risk should be very low.
17- includeDefaultManagedPlatform : false
14+ # This is the default platform provided by Arcade, intended for use by a managed-only repo.
1815 defaultManagedPlatform :
1916 name : ' Managed'
2017 container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343'
2118
2219 # Defines the platforms on which to run build jobs. One job is created for each platform, and the
23- # object in this array is sent to the job template as 'platform'.
20+ # object in this array is sent to the job template as 'platform'. If no platforms are specified,
21+ # one job runs on 'defaultManagedPlatform'.
2422 platforms : []
2523
2624jobs :
3230 dependsOn :
3331 - ${{ each platform in parameters.platforms }} :
3432 - ${{ parameters.jobNamePrefix }}_${{ platform.name }}
35- - ${{ if eq(parameters.includeDefaultManagedPlatform, true ) }} :
33+ - ${{ if eq(length( parameters.platforms), 0 ) }} :
3634 - ${{ parameters.jobNamePrefix }}_${{ parameters.defaultManagedPlatform.name }}
3735
3836- ${{ each platform in parameters.platforms }} :
4139 jobNamePrefix : ${{ parameters.jobNamePrefix }}
4240 platform : ${{ platform }}
4341
44- - ${{ if eq(parameters.includeDefaultManagedPlatform, true ) }} :
42+ - ${{ if eq(length( parameters.platforms), 0 ) }} :
4543 - template : /eng/common/templates/job/source-build.yml
4644 parameters :
4745 jobNamePrefix : ${{ parameters.jobNamePrefix }}
0 commit comments