It it possible to set up the Main branch name (to have anything else than master in SonarQube project) by usage of the parameters listed below?

1,577 views
Skip to first unread message

itr...@gmail.com

unread,
Mar 13, 2018, 12:18:08 PM3/13/18
to SonarQube

Parameters:

sonar.projectKey

sonar.projectName

sonar.branch.name #from branch plugin

sonar.branch.target #from branch plugin


And/or playing with the "Detection of long lived branches" regex?


I know the name can be changed in the UI by the SonarQube server side.

We are using 6.7.1 SonarQube with installed Sonar Branch Plugin - and sonar-runner 2.8 by the Jenkins side.


If the answer is no - is it possible in the newer SonarQube versions - or is it planned at all as a feature?

Or possible via SonarQube/"Sonar Branch plugin" REST API?


Regards,

Piotr

Teryk Bellahsene

unread,
Mar 13, 2018, 12:36:14 PM3/13/18
to itr...@gmail.com, SonarQube
Hello,

Use POST api/project_branches/rename to rename the main branch of a project. Available since 6.6.

Sincerely,

Teryk Bellahsene | SonarSource
Software Developer
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/e987070b-ee15-463f-b718-add997ff5944%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

G. Ann Campbell

unread,
Mar 13, 2018, 2:54:29 PM3/13/18
to SonarQube
Hi Piotr,

Please don't cross post here and on StackOverflow.


Ann
Reply all
Reply to author
Forward
0 new messages