Skip to content

Commit

Permalink
Remove just-in-time install of code coverage report generator tool (#…
Browse files Browse the repository at this point in the history
…7386)

We no longer need to install the code coverage report generator tool in the dotnet checkin pipeline because it is pre-installed on the agent. Additionally, we recently started seeing blocking errors in the dotnet checkin pipeline because it tries to install the tool through the repo's Azure feed but the tool is not cached in the feed. This change removes the install commands.

## Azure IoT Edge PR checklist:
  • Loading branch information
damonbarry authored Oct 29, 2024
1 parent 2685eac commit aaba3b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions builds/checkin/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ jobs:
--settings CodeCoverage.runsettings
displayName: Run unit tests with code coverage
- script: |
dotnet new tool-manifest
dotnet tool install dotnet-reportgenerator-globaltool
dotnet tool run reportgenerator \
reportgenerator \
-reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml \
-targetdir:$(Build.SourcesDirectory) \
-reporttypes:"Cobertura"
-reporttypes:Cobertura
displayName: Generate coverage report
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@2
Expand Down

0 comments on commit aaba3b9

Please sign in to comment.