I'm trying to add dotCover coverage to NDepend report on TeamCity.
I know how to do it with two builds:
- One builds my code and generate the coverage report using dotCover. It creates artifacts for DLLs, PDBs and dotCover report.
- The other one has artifact dependencies getting DLLs, PDBs and dotCover snapshot from first one and parses dotCover report to NDepend expected format and run the NDepend static code analysis.
You can see this configuration deeply here.
The problem arrive when I want to do it all in the same build:
Is there any way to get the dotCover report on the same build (obiously on a next step) before generating the artifact?
As far as I know, TeamCity stores dotCover files on %system.teamcity.build.tempDir%/coverage4288420968195245133zip\dotCover.snapshot.
I can take %system.teamcity.build.tempDir% parameter but not next path folder because it seems to be a random name.
So, if I could know full path, I could add a build step between dotCover step and NDepend steps copiyng the file I need to my workingFolder %system.teamcity.build.checkoutDir%.
Any idea to solve this?
Is it possible to do it?
Thanks in advance.