Hello. I try to exec my sonar-scanner for check a project, but this project is on the other server and i like to get with ssh.
Can i do this?
Give a example.
-Dsonar.projectBaseDir=ssh -t user@hots “cd /srv/www/htdocs/project; bash” \
Thanks.
Hello. I try to exec my sonar-scanner for check a project, but this project is on the other server and i like to get with ssh.
Can i do this?
Give a example.
-Dsonar.projectBaseDir=ssh -t user@hots “cd /srv/www/htdocs/project; bash” \
Thanks.
Hi,
The project you want to analyze needs to be available on the server you’re analyzing from.
Ann
Hello Ann, for answering.
But the problem is, when i throw this command with sonar-scanner *-Dsonar.projectBaseDir=ssh -t user@host “cd /srv/www/htdocs/project; bash” * .
I get this error from console.
ERROR: Unrecognized option: -t
INFO:
INFO: usage: sonar-scanner [options]
INFO:
INFO: Options:
INFO: -D,--define <arg> Define property
INFO: -h,--help Display help information
INFO: -v,--version Display version information
INFO: -X,--debug Produce execution debug output
Hi,
Yes, exactly. Because if you need to ssh
to it, then your project is not on the server you’re analyzing from. In stead it should be something like:
cd project
# build is required to analyze some languages
sonar-scanner
Ann