Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to add "start" parameters? #59

Closed
o7g8 opened this issue Apr 13, 2018 · 4 comments
Closed

Question: How to add "start" parameters? #59

o7g8 opened this issue Apr 13, 2018 · 4 comments

Comments

@o7g8
Copy link

o7g8 commented Apr 13, 2018

Hello,

For integration with GitEnterprise and TeamCity I need to specify following SonarQube parameters:

/d:sonar.analysis.mode=
/d:sonar.useWsCache=
/d:sonar.issuesReport.html.enable=
/d:sonar.issuesReport.console.enable=
/d:sonar.language=
/d:sonar.github.pullRequest=
/d:sonar.github.repository=
/d:sonar.github.login=
/d:sonar.github.oauth=
/d:sonar.github.endpoint=
/d:sonar.github.deleteOldComments=

See also https://docs.sonarqube.org/display/PLUG/GitHub+Plugin

Is it correct that currently one need to add new properties into SonarBeginSettings.cs, which will reflect the additional Sonar parameters?

I wonder if it would make sense to allow Cake users to specify arbitrary Sonar parameters using a weakly typed interface (e.g. via a Dictionary<string, string> on SonarBeginSettings )? Would you accept such change?

Oleg

@tomstaijen
Copy link
Contributor

tomstaijen commented Apr 16, 2018 via email

@Tanzy
Copy link

Tanzy commented Apr 16, 2018

Adding a Dictionary<string, string> makes sense to me, makes it easier when making running the task from CakeBuild

@o7g8
Copy link
Author

o7g8 commented Apr 16, 2018

I have posted a PR with "explicit" implementation of the parameters.
I also think the Dictionary<string,string> would simplify life for many people, who use "less popular" SonarQube parameters and plugins. It can be implemented in the next PR.

@tomstaijen
Copy link
Contributor

ArgumentCustomization in ToolSettings does the same thing. Why duplicate that.

https://cakebuild.net/api/Cake.Core.Tooling/ToolSettings/50AAB3A8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants