2eb659717c
Move to 1ES engineering pools ## PR Checklist * [x] Closes #10734 * [x] I work here * [x] If the builds still work, the tests pass. (release and PR builds...) ## Validation Steps Performed - [x] Run the builds associated with this PR - [x] Force run a release build off this branch - [x] Force run a PGO training build off this branch
48 lines
2.2 KiB
YAML
48 lines
2.2 KiB
YAML
parameters:
|
|
configuration: 'Release'
|
|
platform: ''
|
|
additionalBuildArguments: ''
|
|
minimumExpectedTestsExecutedCount: 10 # Sanity check for minimum expected tests to be reported
|
|
rerunPassesRequiredToAvoidFailure: 5
|
|
|
|
jobs:
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
variables:
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
BuildPlatform: ${{ parameters.platform }}
|
|
pool:
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
name: WinDevPoolOSS-L
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
name: WinDevPool-L
|
|
demands: ImageOverride -equals WinDevVS16-latest
|
|
|
|
steps:
|
|
- template: build-console-steps.yml
|
|
parameters:
|
|
additionalBuildArguments: ${{ parameters.additionalBuildArguments }}
|
|
|
|
# It appears that the Component Governance build task that gets automatically injected stopped working
|
|
# when we renamed our main branch.
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
displayName: 'Component Detection'
|
|
condition: and(succeededOrFailed(), not(eq(variables['Build.Reason'], 'PullRequest')))
|
|
|
|
- template: helix-runtests-job.yml
|
|
parameters:
|
|
name: 'RunTestsInHelix'
|
|
dependsOn: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
condition: and(succeeded(), and(eq('${{ parameters.platform }}', 'x64'), not(eq(variables['Build.Reason'], 'PullRequest'))))
|
|
testSuite: 'DevTestSuite'
|
|
platform: ${{ parameters.platform }}
|
|
configuration: ${{ parameters.configuration }}
|
|
rerunPassesRequiredToAvoidFailure: ${{ parameters.rerunPassesRequiredToAvoidFailure }}
|
|
|
|
- template: helix-processtestresults-job.yml
|
|
parameters:
|
|
dependsOn:
|
|
- RunTestsInHelix
|
|
condition: and(succeededOrFailed(), and(eq('${{ parameters.platform }}', 'x64'), not(eq(variables['Build.Reason'], 'PullRequest'))))
|
|
rerunPassesRequiredToAvoidFailure: ${{ parameters.rerunPassesRequiredToAvoidFailure }}
|
|
minimumExpectedTestsExecutedCount: ${{ parameters.minimumExpectedTestsExecutedCount }} |