Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Marketplace Apps & Integrations

Jira issue check and more advanced commit verifications for Bitbucket DC

Pre-receive hooks that verify the Git commit message, the modified files, and implement similar code change controls used to be requirements of large enterprises working in regulated industries only....

42 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you