Skip to content

Upgrade Azure Pipelines code coverage publishing to v2 - #5200

Merged
Mike Harder (mikeharder) merged 2 commits into
mainfrom
copilot/update-publish-code-coverage-task
Aug 5, 2026
Merged

Mike Harder (mikeharder) merged 2 commits into
mainfrom
copilot/update-publish-code-coverage-task

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Azure Pipelines warns that PublishCodeCoverageResults@1 is deprecated and recommends migrating to version 2.

Changes

  • Upgrade PublishCodeCoverageResults from @1 to @2.
  • Remove the obsolete codeCoverageTool and reportDirectory inputs.
  • Retain the existing Cobertura report glob via summaryFileLocation.

Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
@mikeharder
Mike Harder (mikeharder) enabled auto-merge (squash) August 5, 2026 23:25
@azure-pipelines

Copy link
Copy Markdown

You may test this build by running autorest --reset and then either:


Add the following CLI flags
Pacakge Flag Description
@autorest/core --version:https://tinyurl.com/29lovako For changes to autorest core.
@autorest/modelerfour --use:https://tinyurl.com/2cwgj3ts For changes to modelerfour.

Or with all

autorest --version:https://tinyurl.com/29lovako --use:https://tinyurl.com/2cwgj3ts

or use the following in your autorest configuration:
# For changes to autorest core
version: "https://tinyurl.com/29lovako"

# For changes to modelerfour
use-extension:
  "@autorest/modelerfour": "https://tinyurl.com/2cwgj3ts"

If this build is good for you, give this comment a thumbs up. (👍) And you should run `autorest --reset` again once you're finished testing to remove it.

@mikeharder
Mike Harder (mikeharder) merged commit 8146e0b into main Aug 5, 2026
11 checks passed
@mikeharder
Mike Harder (mikeharder) deleted the copilot/update-publish-code-coverage-task branch August 5, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants