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

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

generation of sonar.projectkey

We use the Sonar for Bitbucket Server version 2.7.3 in our bitbucket server.There if I am correct the sonar.projectkey is used to access the sonarqube project. And theprojectkey is generated by using the branch name, which contains a slash as a delemiter of branch type and branch name. Now in SonarQube Server 7.9.4 (also in 8.4) the slash is not allowed to use in a projectkey.

Is there any way to replace the slash in this plugin by changing a configuration? Or is there an update planned for this behavior?


We use Bitbucket v6.10.5 so i can not install the latest version of the plugin which is only compatible with v7.x of bitbucket


1 answer

1 accepted


Yes, there is a possibility by replacing the now invalid characters like "/" with allowed characters when analyzing your projects with SonarQube, e.g. instead of


you now have to use


Sonar for Bamboo and Sonar for Bitbucket support this and make it transparent by using the feature "Replacement for illegal branch characters" which is also supported by app version 2.7.3.

Does that help you?

Best regards,

Michael (app vendor)

Hi @Michael Rüegg _Mibex Software_, thanks for the response. can you show me how it works, as I understand this field as the replacement character not as the characters which should be replaced. If I add the slash to the field I get an error message:


Thanks Jens

@Jens MüllerYou're very welcome. In that field you are expected to enter the character which you want to replace the illegal characters with. For the example given above, this would be "_". We will need to update the description as it is now necessary again with the most recent SQ versions (not only for SQ < 5).

@Michael Rüegg _Mibex Software_Thanks that works fine. Souldn't it be '_' by default, because this is the rule which is used by bitbucket itself?


Also it would be great if it is possible to have a global configuration, not only on a project/repository.

@Jens MüllerCould you please describe which rule of Bitbucket you are referring to where "_" is the default? Yes, we are currently working on a solution that will either make this transparent or provide a global configuration option.

@Michael Rüegg _Mibex Software_

Sorry my fault I thouht that all blanks for instance are replaced by _ as i create a branch. Now as i am tried it, it will be replaced by minus and looks like only blanks are replaced



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

97 views 1 6
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