Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
I am trying to execute a Sonar scanner step in a Jenkins job, but my i keep getting an error relating to sonar scanner execution, i am not sure what the issue is. i have added screenshots.
Welcome to the community!
It looks like you passed something on the analysis command line that wasn’t flagged as a parameter (i.e. preceded with
-D), so the scanner took it as an argument naming a task.
If you look at your analysis command line and it’s not obvious what the problem is, feel free to share it here.
Thanks Ann, here is what my analysis command line looks like;
#path to source directory
That’s your analysis parameters, not the command that launches analysis. It’s the command that launches analysis that I need to see.
i got the scanner to move past the error, thanks, i built the project with maven and added the target/class file path to sonar.binaries and excluded the .h files with sonar.exclude