Skip to content

Azure DevOps MultiPlatform pipeline #709

Answered by danielpalme
niphlod asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @niphlod,

ReportGenerator relies on the path information in the coverage files.
In your case you have to adjust the Windows paths from the first stage so that the files can be found in the Linux stage.

You can do this with a litte script before executing ReportGenerator.

Powershell example:

(gc "/home/vsts/work/1/coverreports/your/path/coverage.cobertura.xml") | % { $_ -replace "C:\Some\Windows\Path", "/home/some/linux/path" } | Out-File "/home/vsts/work/1/coverreports/your/path/coverage.cobertura.xml" -Encoding UTF8

The script is just an example. Please adjust the paths as needed in your scenario.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niphlod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants