which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension):
SonarQube Enterprise Edition Version 7.9.1 (build 27448);
SonarQube Scanner 4.2.0.1873-macosx;
what are you trying to achieve
How to reduce the time of Sonar Scanner on iOS projects(Object C)
what have you tried so far to achieve this
I have successfully executed SonarQube BuildWrapper and Scanner on the iOS project and generated the report. However, the whole process takes a long time(20+ mins for BuildWrapper and 30+ mins for Scanner). I’d like to ask for help with how to save time.
My current situation is: the Build stage is executed by Xcode plugin of Jenkins so that I have no idea how to merge BuildWrapper in the Build stage(which means I have to run the build process twice: one to generate the ipa file, another for BuildWrapper); I tried to run BuildWrapper along with Unit Test since it was executed by the terminal command, but the scan results of merging BuildWrapper to Build or Unit Test are very different on the same scheme(600+ vs 900+ bugs), can anyone help to figure out why this happened?
I tried to use the parameter “sonar.cfamily.threads” in SonarQube scanner, which saved some time, but the left time still couldn’t be accepted. Are there other ways to speed up the process?
Thanks a lot for your help!
Hi Massimo,
Thanks a lot for your reply!
I’m using build-wrapper of the version 6.3, I will upgrade it and try again.
I know that the time of BuildWrapper is actually the build time. I’m suffering that I need to run the build process twice now because of build-wrapper can’t be combined with the Xcode plugin of Jenkins.
I tried to set “sonar.cfamily.threads=2” on my local Mac Pro, which has 2 cores. It decreased the time of SonarQube Scanner from 56 mins to 36 mins.
It’s amazing that Incremental Analysis has been supported! Thanks for your shared post and how shall I test it?