-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
PublishCodeCoverageResults@2
Task version
2.238.1
Issue Description
I recently installed the .NET 8 SDK on my build server and now this task no longer works. Please note my projects still Target .NET 7 and compile without issue. The DotNetCoreCLI@2 tests execution runs without issue as well.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11
Relevant log output
2024-05-22T18:12:49: Error during reading file 'https://dev.azure.com/MyOrg/MyProject/_apis/git/repositories/my-repo/items?api-version=1.0&versionType=commit&version=sha1&path=/src/MyProject/MyFile.cs': Response status code does not indicate success: 500 (Internal Server Error).
Full task logs with system.debug enabled
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
- task: DotNetCoreCLI@2
displayName: Unit Test Sandbox
inputs:
command: test
projects: '**/*[Tt]ests/*.csproj'
arguments: '--no-build --configuration ${{ parameters.buildConfiguration }} --settings src/MyProject.Tests/ci.runsettings --blame-hang-timeout 120s --blame-hang-dump-type full --blame-crash-dump-type full --filter IgnoreCi!=true${{ parameters.additionalTestFilters }}'
- task: PublishCodeCoverageResults@2
displayName: 'Publish Code Coverage Report'
inputs:
summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'