Sonar Gerrit plugin not posting comments when changedLinesOnly == true

204 Views Asked by At

I'm using Sonar Gerrit plugin for Jenkins and it works fine in its default mode (changedLinesOnly == false, isNew == false).

However, when I'm enabling changedLinesOnly == true, all issues vanish, even those that were added in the Gerrit patch (e.g. unused variable).

Is this a bug, or perhaps I'm missing something?

Components versions:

Jenkins:: 2.95

Gerrit:: 2.13.4

Sonar-Gerrit: 2.1

Thanks.

2

There are 2 best solutions below

0
On

The issue was fixed in v2.3 of SonarGerrit plugin. Tatiana, thank you for fixing this!

2
On

I could reproduce the issue here with:

Jenkins     : 2.73.1
Gerrit      : 2.14.3
Sonar Gerrit: 2.2.1

This worked nicely before (I don't remember the versions)... it seems like a bug to me.