Skip to main content

How can I Run A Sonar Analysis Without Maven?

Comments

3 comments

  • Rekha Karavate

    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.

    0
  • Kishore Bhatia

    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 ...

    0
  • Denys Digtiar

    Hi Rekha,

    I believe you can find an answer to your question in the documentation, here is a link:

    Analyzing in a Jenkins Pipeline

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.