@mpaladin, I managed to integrate your yml and sh script in my Azure DevOps pipeline and it kicked off the scan. However, I am getting the error below. could you guide me on what went wrong?
INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.18.0.29274
INFO: Using build-wrapper output: /home/vsts/work/1/s/bw-output/build-wrapper-dump.json
INFO: Available processors: 2
INFO: Using 2 threads for analysis according to value of “sonar.cfamily.threads” property.
INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
INFO: SE: 0 out of 0
INFO: Subprocess(es) done in 6ms
INFO: Cache: 0/0 hits, 136 bytes
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:24.998s
INFO: Final Memory: 117M/390M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty. Please make sure that:
-
you are using the latest version of the build-wrapper and the CFamily analyzer
-
your compiler is supported
-
you are wrapping your build correctly
-
you are wrapping a full/clean build
-
if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process