Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,190
Community Members
 
Community Events
184
Community Groups

Sonarqube Community edition branch analysis failing

I am running Sonarqube Community Edition 7.9.1, and I want to run an analysis while passing the branch parameter to Sonar by setting the 

sonar.projectKey

parameter to

key:branch

as per the documentation https://docs.sonarqube.org/8.1/setup/upgrade-notes/

 

mvn clean install sonar:sonar -Dsonar.projectKey=PROJECT_KEY_SET_UP_ON_SONARQUBE:master -Dsonar.host.url=https://INTERNAL_SONARQUBE_ADDRESS -Dsonar.login=TOKEN

 

However I am getting a 

You're not authorized to run analysis. Please contact the project administrator.

error when running the analysis. The analysis works perfectly well without the :master suffix.

 

What am I doing wrong? According to the documentation everything should be working...

 

1 answer

0 votes
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 14, 2020

Hi,

Is it possible that you are lacking one of these permissions in SonarQube?

  • Execute Analysis
  • Create Project

From the error I guess it is the second because running it without the branch suffix might create a new SonarQube project which needs that permission.

Best regards,

Michael

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events