Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) Enterprise 10.7.0.96327
- how is SonarQube deployed: zip, Docker, Helm ZIP
- what are you trying to achieve Run a scan
- what have you tried so far to achieve this Followed directions
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Alright, after the successes I had with Community Edition I have advanced to a trial version of the Enterprise edition. I have managed to get this set up as a .zip and configured it to get the web front-end running using the H2 database (in full we’ll seek out a more permanent solution but I need to demonstrate Enterprise functionality before I can go so far as borrow/beg/steal a SQL setup somewhere on the network). Anyway I’ve followed the same process as before, targeting a stand-alone Java project collection that worked fine in CE, but I noticed that the web front end for EE is telling me to run against a command that is not recognized. It seems like it tells me to run:
sonar-scanner
-Dsonar.projectKey=EnterpriseTEST
-Dsonar.sources=.
-Dsonar.host.url=http://localhost:9000
-Dsonar.token=myToken
Which if the CE’s format is any indication means I should be opening command prompt in my target directory and running it like this:
sonar-scanner -D"sonar.projectKey=EnterpriseTEST" -D"sonar.host.url=http://localhost:9000" -D"sonar.token=myToken -D"sonar.java.binaries=."
Mind I’ve added the java binaries thing since the target is a Java project.
It throws up saying sonar-scanner is not recognized, so I checked back on CE and noticed it was a .bat command. Called this, also failed. I had preemptively updated an Environmental Variable in Windows to point to the scanner directory of the Enterprise Edition in question (C:\Sonarqube\sonarqube-10.7.0.96327\lib\scanner in my case), but once I saw my first two tries fail I checked back and realized there’s no .bat in there, but only a file called “scanner-enterprise-10.7.0.96327-all.jar”.
I tried calling this with those arguments out of curiosity but that too has failed. A check through the documentation doesn’t seem to make mention of what Environmental Variable to set to make calling “sonar-scanner” make something happen, so I suspect I’m overlooking something completely. For what it’s worth, that entire Enterprise directory does not have a “sonar-scanner” anything.
What am I missing here?