Short-lived branch shows pass and failed to report issues

(Ching Chang) #1


Our team use GitHub + TravisCI + sonarcloud.
I’m using the gradle sonarqube plugin (2.7) to analyse an Android project.
When I push to a short-lived branch, the status of sonar cloud shows pass with 0 issue.
However, when I create a Pull Request for this same branch, many issues show up at the PR analysis page.
It should have reported these issues when I triggered a branch analysis.

Please help on this issue. Thanks!

(Fabrice Bellingard) #2

Are you using the Travis CI addon?

(Ching Chang) #3

Yes We use Travis CI addon.

And we’ve tried the gradle pluggin for android project, and sonnar-scanner for nodejs project, but both projects have the same problems! Any update?

(Fabrice Bellingard) #4

Is your repository public so that I can take a look at what’s happening?
One reason can be that short lived branches don’t necessarily have a target branch, which is not the case for PR.