Must-share information (formatted with Markdown):
-
Jenkins plugin SonarQube Scanner 4.2.0.1873, SonarQube Developer Edition Version 8.1 (build 31237)
-
We are trying to scan objc files in macOS environment, however we are geting “java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty” error
-
these are commands we’re running to start sonarqube scan:
sh "build-wrapper-macosx-x86 --out-dir . /usr/bin/xcrun xcodebuild clean -project ${xcodeBuildProjectPath} -scheme ${xcodeBuildScheme} SUPPORTS_MACCATALYST=NO "
customParameters += " -Dsonar.c.file.suffixes=.c -Dsonar.cpp.file.suffixes=.cpp,.hpp -Dsonar.objc.file.suffixes=.h,.m,.mm -Dsonar.scm.disabled=true -Dsonar.scm.exclusions.disabled=true -Dsonar.cfamily.cache.enabled=false -Dsonar.verbose=true"
sh "${scannerHome}/bin/sonar-scanner -X -Dsonar.projectName=\"${projectName}\" -Dsonar.projectKey=${projectKey} -Dsonar.projectVersion=${newVersion} -Dsonar.sources=${parameters.sonarqube.sources} -Dsonar.cfamily.build-wrapper-output=. ${customParameters}"
In the log file result of the sonar-scanner execution:
log.txt (87.4 KB)
Help would be much appreciated.