Skip to content

Commit 5e14b56

Browse files
authored
Inhibit code coverage upload for ADO.Net pipelines (#3828)
1 parent da467a7 commit 5e14b56

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.config/CredScanSuppressions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
{
1313
"file": "doc/samples/SqlConnectionStringBuilder.cs",
1414
"justification": "Documentation could include sample data and can be ignored"
15+
},
16+
{
17+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Fixtures/AlwaysEncrypted/NativeColumnEncryptionKeyCertificateBaselineFixture.cs",
18+
"justification": "Test projects should be skipped"
19+
},
20+
{
21+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Resources/AlwaysEncrypted/NativeColumnEncryptionKeyBaseline/Certificate.pfx",
22+
"justification": "Test projects should be skipped"
1523
}
1624
]
1725
}

eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ parameters:
3333
# True to upload code coverage results to CodeCov.
3434
- name: upload
3535
type: boolean
36-
default: true
3736

3837
jobs:
3938
- job: CodeCoverage

eng/pipelines/dotnet-sqlclient-ci-core.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ stages:
171171
image: ADO-MMS22-CodeCov
172172
pool: ${{ parameters.defaultPoolName }}
173173
targetFrameworks: ${{ parameters.codeCovTargetFrameworks }}
174+
# This is a Pipeline Variable defined in the Azure DevOps UI. It
175+
# must be defined with a true/false value for all pipelines that
176+
# specify a build type of 'Project'.
177+
#
178+
# You can find Pipeline Variables by visiting the main page of the
179+
# pipeline and choosing Edit -> Variables.
180+
#
181+
upload: ${{ eq(variables.ci_var_uploadTestResult, 'true') }}
174182

175183
# test stages configurations
176184
# self hosted SQL Server on Windows

0 commit comments

Comments
 (0)