diff --git a/eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml b/eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml index 068b3a6699..7ad1413a18 100644 --- a/eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml +++ b/eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml @@ -33,7 +33,6 @@ parameters: # True to upload code coverage results to CodeCov. - name: upload type: boolean - default: true jobs: - job: CodeCoverage diff --git a/eng/pipelines/dotnet-sqlclient-ci-core.yml b/eng/pipelines/dotnet-sqlclient-ci-core.yml index 09e48415f6..96b57bd534 100644 --- a/eng/pipelines/dotnet-sqlclient-ci-core.yml +++ b/eng/pipelines/dotnet-sqlclient-ci-core.yml @@ -152,6 +152,14 @@ stages: image: ADO-MMS22-CodeCov pool: ${{ parameters.defaultPoolName }} targetFrameworks: ${{ parameters.codeCovTargetFrameworks }} + # This is a Pipeline Variable defined in the Azure DevOps UI. It + # must be defined with a true/false value for all pipelines that + # specify a build type of 'Project'. + # + # You can find Pipeline Variables by visiting the main page of the + # pipeline and choosing Edit -> Variables. + # + upload: ${{ eq(variables.ci_var_uploadTestResult, 'true') }} # test stages configurations # self hosted SQL Server on Windows