How to install build wrapper of C family for Jenkins-Sonarqube setup?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonarqube Dev version 8.3 with Jenkins
  • what are you trying to achieve
    Configure build wrapper provided by Sonarsource for Obj C, CPP projects
  • what have you tried so far to achieve this
    I couldn’t find any documentation of how to achieve this on a jenkins-sonarqube setup.
    Can someone help with the steps?
    Also, where is the build-wrapper to be configured? Jenkins server or Sonarqube server?

Hi @DaveMac,

It should be on the jenkins job where you build & analyze your project. You can give a look at https://docs.sonarqube.org/latest/analysis/languages/cfamily/. Based on what written there you can do something like:

curl -LsS -O ${SONARQUBE_URL}/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86.zip
build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir cfamily-compilation-database <command to build your project>

I had a question. I am trying to analyse an ios project. Does it require me to have to use xcode to build the wrapper for this project?
Because my project is Obj C and Swift based.

Hi @DaveMac,

you should simply wrap your existing build, which I believe is using xcodebuild if it is objc and swift.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.