Add devOps feed as dotnet install source#7207
Open
chidozieononiwu wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the Azure Pipelines CI and live test job templates to install the .NET coverage report generator tool from the Azure DevOps public NuGet feed, aiming to make tool installation more consistent/reliable in pipeline environments.
Changes:
- Introduces a
DotNetDevOpsFeedpipeline variable in both CI and live test job templates. - Updates
dotnet tool installcommands fordotnet-reportgenerator-globaltoolto include--add-source "$(DotNetDevOpsFeed)".
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/pipelines/templates/jobs/live.tests.yml | Adds DotNetDevOpsFeed and uses it when installing the reportgenerator global tool in live test jobs. |
| eng/pipelines/templates/jobs/ci.tests.yml | Adds DotNetDevOpsFeed and uses it when installing the reportgenerator global tool in CI test jobs (coverage path). |
Comment on lines
+151
to
+152
| dotnet tool install -g --add-source "$(DotNetDevOpsFeed)" dotnet-reportgenerator-globaltool | ||
| dotnet tool install --add-source "$(DotNetDevOpsFeed)" dotnet-reportgenerator-globaltool --tool-path tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the CI and live test pipeline templates to ensure that the .NET coverage tool (
dotnet-reportgenerator-globaltool) is installed from the Azure DevOps NuGet feed, improving reliability and consistency of tool installation in CI environments.Pipeline environment variable additions:
DotNetDevOpsFeedin bothci.tests.ymlandlive.tests.ymlto specify the Azure DevOps NuGet feed URL for .NET tools. [1] [2]Coverage tool installation improvements:
dotnet-reportgenerator-globaltoolin bothci.tests.ymlandlive.tests.ymlto use the--add-source "$(DotNetDevOpsFeed)"option, ensuring the tool is installed from the specified Azure DevOps feed. [1] [2]