Use-case: when running this Sonar Analysis build on a distributed build-node (and not the master itself) - If you see an error related to JDBC source or db connection failure, then provide additional args for jdbc source and make sure the build-node is able to connect with that jdbc source (IP/port).
try with this additional arg (sample values shown)-
-Dsonar.jdbc.url=jdbc:h2:tcp://sonar-vm:9092/sonar (replace with actual jdbc url)
The sonar-runner output should reflect jdbc src arg like: C:\sonar-runner-2.4\bin\sonar-runner.bat -e -Dsonar.host.url=host:port -Dsonar.jdbc.url=jdbc:h2:tcp://host:port/sonar ...
I want to run sonarqube analysis for the C code using Jenkinsfile. How can I use SoanrQube for the C project?I guess I need to use Build Wrapper. But I didn't get much information how to use build Wrapper in jenkins. Thanks.
Comments
3 comments
Use-case: when running this Sonar Analysis build on a distributed build-node (and not the master itself) - If you see an error related to JDBC source or db connection failure, then provide additional args for jdbc source and make sure the build-node is able to connect with that jdbc source (IP/port).
try with this additional arg (sample values shown)-
-Dsonar.jdbc.url=jdbc:h2:tcp://sonar-vm:9092/sonar (replace with actual jdbc url)
The sonar-runner output should reflect jdbc src arg like: C:\sonar-runner-2.4\bin\sonar-runner.bat -e -Dsonar.host.url=host:port -Dsonar.jdbc.url=jdbc:h2:tcp://host:port/sonar ...
Hello,
I want to run sonarqube analysis for the C code using Jenkinsfile. How can I use SoanrQube for the C project?I guess I need to use Build Wrapper. But I didn't get much information how to use build Wrapper in jenkins. Thanks.
Hi Rekha,
I believe you can find an answer to your question in the documentation, here is a link:
Analyzing in a Jenkins Pipeline
Please sign in to leave a comment.