JetBrains / TeamCity.SonarQubePlugin

A plugin for TeamCity server allowing you to configure and run SonarQube analysis from the CI
Apache License 2.0
53 stars 32 forks source link

Final snapshot no longer available after TeamCity 2019.1 #62

Closed DanWallaceAdslot closed 5 years ago

DanWallaceAdslot commented 5 years ago

TL;DR: Build configuration using Nunit3 to run tests with dotCover as coverage tool

I was using a basic setup:

This was allowing me to see the dotCover results in TeamCity and also the only way I could figure out how to send coverage through to SonarQube.

Was working fantastically until I upgraded TeamCity to 2019.1. Now the .dcvr file is missing and am currently in the process of trying to figure out an alternative method

Linfar commented 5 years ago

Yes, since 2019.1 .dcvr file is not published by default. Please add a teamcity.agent.dotCover.publishSnapshot=true config parameter. You can also use teamcity.agent.dotNetCoverage.publishPath parameter to specify file location.

DanWallaceAdslot commented 5 years ago

Thanks Linfar, I've done that and the file is being generated again :)

Linfar commented 5 years ago

Thanks for update

nazarenomanco commented 4 years ago

@Linfar please help me, where do I have to add "teamcity.agent.dotCover.publishSnapshot=true" config parameter? May you please make me an example. I do not find the correct point. I'm using the 2019.2 version. I need to collect the dcvr file to convert to HTML and import in SonarQube Thank you very much!

Linfar commented 4 years ago

@nazarenomanco You should add a build parameter for the Build Configuration. Navigate to Edit Build Configuration administration page, find Parameters tab and push Add new parameter button.

nazarenomanco commented 4 years ago

@Linfar thank you! I have added here the parameters but it give me an error. There is any tutorial somewhere? Thanks!

image

Linfar commented 4 years ago

What error? I don't see neither parameter nor error on your screenshot