Closed renzors closed 7 years ago
@renzors Can you be more specific?
Sure. I am using four tools: Stash, TeamCity, Sonar for Stash and SonarQube.
When I make a change on stash, that run a build process in teamcity and in my process I set the project key, in my case is the same name of branch on stash. It must be the branch name because in a second time I use sonar for stash to analyze the pull request issues, but this tool search a project key in sonarqube named as the branch.
All is fine, except when the branch name have a special characters as # for example. So, currently I get the branch name through of a parameter, but I'd like will can replace the characters as part of configuration. I think that it is a reason because in sonar for stash exist a field for replace special characters, i suppose because it is recurrent.
@renzors Ok, now I got it. There is no such functionality in TeamCity. As a workaround you can modify this parameter in a separate build step before Sonar analysis (refer to service message documentation). On the other hand this looks like it should be done inside TeamCity SonarQube plugin. I'll try to fix it tomorrow.
Nice @Linfar I will be expectant :-)
@Linfar Thanks a lot :-)
Before that run the analyse process, I need to change some special characters for project key. How can I do that?