Skip to content

Commit 845a785

Browse files
authored
Merge pull request #354 from AArnott/optimizations
Pipeline optimizations
2 parents 164ff31 + 039ac0b commit 845a785

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

azure-pipelines/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ parameters:
7171
type: boolean
7272
default: true
7373

74+
- name: PublishCodeCoverage
75+
type: boolean
76+
default: true
77+
7478
# Whether this is a special one-off build for inserting into VS for a validation insertion PR (that will never be merged).
7579
- name: SkipCodesignVerify
7680
type: boolean
@@ -303,7 +307,7 @@ jobs:
303307
parameters:
304308
EnableLinuxBuild: ${{ parameters.EnableLinuxBuild }}
305309
EnableMacOSBuild: ${{ parameters.EnableMacOSBuild }}
306-
- ${{ if parameters.RunTests }}:
310+
- ${{ if and(parameters.RunTests, parameters.PublishCodeCoverage) }}:
307311
- template: publish-codecoverage.yml
308312
parameters:
309313
EnableLinuxBuild: ${{ parameters.EnableLinuxBuild }}

azure-pipelines/official.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ parameters:
2727
displayName: Include APIScan with compliance tools
2828
type: boolean
2929
default: false # enable in individual repos only AFTER updating TSAOptions.json with your own values
30+
- name: PublishCodeCoverage
31+
displayName: Publish code coverage
32+
type: boolean
33+
default: true
3034

3135
resources:
3236
repositories:
@@ -53,7 +57,7 @@ extends:
5357
suppression:
5458
suppressionFile: $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress
5559
sbom:
56-
enabled: true
60+
enabled: false # Skip 1ES SBOM because microbuild has our own sbom system
5761
stages:
5862
- stage: Build
5963
variables:
@@ -77,6 +81,7 @@ extends:
7781
os: macOS
7882
EnableMacOSBuild: ${{ parameters.EnableMacOSBuild }}
7983
RunTests: ${{ parameters.RunTests }}
84+
PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }}
8085
- template: /azure-pipelines/prepare-insertion-stages.yml@self
8186
parameters:
8287
RealSign: true

azure-pipelines/unofficial.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ parameters:
3737
displayName: Enable Production SDL
3838
type: boolean
3939
default: false
40+
- name: PublishCodeCoverage
41+
displayName: Publish code coverage
42+
type: boolean
43+
default: true
4044

4145
resources:
4246
repositories:
@@ -65,7 +69,7 @@ extends:
6569
enabled: ${{ parameters.EnableProductionSDL }}
6670
exclusionsFile: $(System.DefaultWorkingDirectory)\azure-pipelines\PoliCheckExclusions.xml
6771
sbom:
68-
enabled: ${{ parameters.EnableProductionSDL }}
72+
enabled: false # Skip 1ES SBOM because microbuild has our own sbom system
6973
stages:
7074
- stage: Build
7175
variables:
@@ -89,3 +93,4 @@ extends:
8993
os: macOS
9094
EnableMacOSBuild: ${{ parameters.EnableMacOSBuild }}
9195
RunTests: ${{ parameters.RunTests }}
96+
PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }}

azure-pipelines/vs-insertion.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ extends:
3232
- job: insertion
3333
displayName: VS insertion
3434
pool: VSEngSS-MicroBuild2022-1ES
35+
templateContext:
36+
outputParentDirectory: $(Pipeline.Workspace)/CI
3537
steps:
3638
- checkout: none
3739
- powershell: Write-Host "##vso[build.updatebuildnumber]$(resources.pipeline.CI.runName)"

0 commit comments

Comments
 (0)