In our Sonar configuration we'd like to set the 'Branch' field to '${GIT_BRANCH}'
Due to '/' being commonly used in git branches, we'd like to add a checkbox under the branch field called 'Escape invalid branch characters' so any invalid character is automatically changed to underscore '_'.
We plan on submitting a patch for this - I'm hoping you will consider applying it.
This feature is a must to use Sonar together with Git because nearly all Git-based workflows propose a branch naming pattern like "bugfixes/bugXY" or "features/newFeatureXY" which at least have one character ('/') that is not allowed in Sonar when using "-Dsonar.branch=". Would be highly appreciated!
Michael Rüegg
added a comment - This feature is a must to use Sonar together with Git because nearly all Git-based workflows propose a branch naming pattern like "bugfixes/bugXY" or "features/newFeatureXY" which at least have one character ('/') that is not allowed in Sonar when using "-Dsonar.branch=". Would be highly appreciated!
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
Visual of what the option would look like