Skip to content

Commit 857c00c

Browse files
Port #3828 to release/6.0 (#3894)
Port #3828 to release/6.0 to fix CodeCoverage upload issues observed in ADO.
1 parent 7ec045f commit 857c00c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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
@@ -99,6 +99,14 @@ stages:
9999
image: ADO-MMS22-CodeCov
100100
pool: ${{ parameters.defaultPoolName }}
101101
targetFrameworks: ${{ parameters.codeCovTargetFrameworks }}
102+
# This is a Pipeline Variable defined in the Azure DevOps UI. It
103+
# must be defined with a true/false value for all pipelines that
104+
# specify a build type of 'Project'.
105+
#
106+
# You can find Pipeline Variables by visiting the main page of the
107+
# pipeline and choosing Edit -> Variables.
108+
#
109+
upload: ${{ eq(variables.ci_var_uploadTestResult, 'true') }}
102110

103111
# test stages configurations
104112
# self hosted SQL Server on Windows

0 commit comments

Comments
 (0)