We are facing an issue when scanning a short lived branch like feature/some-branch.
We are using Jenkins Grade pipeline to automate scanning every time a commit is made on BitBucket.
The analysis seems to complete OK but the results are empty on SonarQube UI, and I know there should be some code smells.
We are using SonarQube 7.6 Developer Edition
The strange thing is that when I manually run the scan on my laptop and passing the exact same parameters used in jenkins pipeline the results are uploaded successfully and reported on the project
The pipeline used to work when you don’t set the -Dsonar.branch.name parameter but it was reporting as Master every branch it was scanning.