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...
Hi,
Is it possible that you are lacking one of these permissions in SonarQube?
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.