Hi, i just want to understand something.
I my case for first time when i ran analysis in my development branch it got failed with some valid quality gate conditions. In second time i haven’t updated any code but in my second analysis quality gate status is showing passed.
I just want to know why this happened ? is this because not enough lines of codes have been added or some other reason…
I’m guessing you’ve set it to ‘Previous version’ and you’re passing a sonar.projectVersion value that changes with each analysis - probably your build string?
Doing so resets what’s considered “new” with each analysis, so “new” issues age out of being new almost immediately. If I’m right, you probably want to change what you pass to sonar.projectVersion.
Yes, I am using Previous version for new code definition…
I am not passing sonar.projectVersion. I am running analysis through Bitbucket cloud CI pipeline…
Hi guys, I have the same issue. I had a release branch (target branch). When I create a new pull request to the release branch, it will trigger the sonar build. It often failed the quality gate at the first time. but the second time when I committed --amend (not change any code), it passed the quality gate
You’ve revived an old thread. Per the FAQ, please don’t do that. Please create a new thread with all your details, so we can investigate your situation.