|
|
|
@ -11,16 +11,14 @@ parameters: |
|
|
|
# See /eng/common/templates/job/source-build.yml |
|
|
|
jobNamePrefix: 'Source_Build' |
|
|
|
|
|
|
|
# If changed to true, causes this template to include the default platform for a managed-only |
|
|
|
# repo. The exact Docker image used for this build will be provided by Arcade. This has some risk, |
|
|
|
# but since the repo is supposed to be managed-only, the risk should be very low. |
|
|
|
includeDefaultManagedPlatform: false |
|
|
|
# This is the default platform provided by Arcade, intended for use by a managed-only repo. |
|
|
|
defaultManagedPlatform: |
|
|
|
name: 'Managed' |
|
|
|
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343' |
|
|
|
|
|
|
|
# Defines the platforms on which to run build jobs. One job is created for each platform, and the |
|
|
|
# object in this array is sent to the job template as 'platform'. |
|
|
|
# object in this array is sent to the job template as 'platform'. If no platforms are specified, |
|
|
|
# one job runs on 'defaultManagedPlatform'. |
|
|
|
platforms: [] |
|
|
|
|
|
|
|
jobs: |
|
|
|
@ -32,7 +30,7 @@ jobs: |
|
|
|
dependsOn: |
|
|
|
- ${{ each platform in parameters.platforms }}: |
|
|
|
- ${{ parameters.jobNamePrefix }}_${{ platform.name }} |
|
|
|
- ${{ if eq(parameters.includeDefaultManagedPlatform, true) }}: |
|
|
|
- ${{ if eq(length(parameters.platforms), 0) }}: |
|
|
|
- ${{ parameters.jobNamePrefix }}_${{ parameters.defaultManagedPlatform.name }} |
|
|
|
|
|
|
|
- ${{ each platform in parameters.platforms }}: |
|
|
|
@ -41,7 +39,7 @@ jobs: |
|
|
|
jobNamePrefix: ${{ parameters.jobNamePrefix }} |
|
|
|
platform: ${{ platform }} |
|
|
|
|
|
|
|
- ${{ if eq(parameters.includeDefaultManagedPlatform, true) }}: |
|
|
|
- ${{ if eq(length(parameters.platforms), 0) }}: |
|
|
|
- template: /eng/common/templates/job/source-build.yml |
|
|
|
parameters: |
|
|
|
jobNamePrefix: ${{ parameters.jobNamePrefix }} |
|
|
|
|