Template for a good new topic, formatted with Markdown:
- ALM used (Azure DevOps)
- CI system used (Azure DevOps)
- Scanner command used when applicable (build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory ./build.sh) . here build.sh has mm command
- Languages of the repository (c, c++)
- Error observed
2024-02-15T10:42:01.2284841Z ==============================================================================
2024-02-15T10:42:01.2285166Z Task : Run Code Analysis
2024-02-15T10:42:01.2285319Z Description : Run scanner and upload the results to the SonarCloud server.
2024-02-15T10:42:01.2285652Z Version : 1.43.2
2024-02-15T10:42:01.2285961Z Author : sonarsource
2024-02-15T10:42:01.2286102Z Help : Version: 1.43.2. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2024-02-15T10:42:01.2287338Z ==============================================================================
2024-02-15T10:42:18.3554453Z [command]/azure/Build_Agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/bin/sonar-scanner
2024-02-15T10:42:19.2980422Z INFO: Scanner configuration file: /azure/Build_Agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/conf/sonar-scanner.properties
2024-02-15T10:42:19.2986016Z INFO: Project root configuration file: /azure/Build_Agent/_work/8/s/sonar-project.properties
2024-02-15T10:42:19.3874680Z INFO: SonarScanner 4.8.1.3023
2024-02-15T10:42:19.3875682Z INFO: Java 17.0.9 Private Build (64-bit)
2024-02-15T10:42:19.3876278Z INFO: Linux 5.15.0-1045-azure amd64
2024-02-15T10:42:20.2692150Z INFO: User cache: /home/pearicc/.sonar/cache
2024-02-15T10:42:21.7993994Z INFO: Analyzing on SonarCloud
2024-02-15T10:42:21.7995104Z INFO: Default locale: "en", source code encoding: "UTF-8"
2024-02-15T10:42:22.3558983Z INFO: Load global settings
2024-02-15T10:42:22.6342303Z INFO: Load global settings (done) | time=280ms
2024-02-15T10:42:22.6380177Z INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
2024-02-15T10:42:22.6517390Z INFO: User cache: /home/.sonar/cache
2024-02-15T10:42:22.6573506Z INFO: Loading required plugins
2024-02-15T10:42:22.6576315Z INFO: Load plugins index
2024-02-15T10:42:22.8875621Z INFO: Load plugins index (done) | time=230ms
2024-02-15T10:42:22.8876472Z INFO: Load/download plugins
2024-02-15T10:42:23.2667455Z INFO: Load/download plugins (done) | time=379ms
2024-02-15T10:42:23.8313456Z INFO: Found an active CI vendor: 'Azure DevOps'
2024-02-15T10:42:23.8427000Z INFO: Load project settings for component key:-test-repo'
2024-02-15T10:42:24.0337682Z INFO: Load project settings for component key: 'test-repo' (done) | time=191ms
2024-02-15T10:42:24.0425184Z INFO: Process project properties
2024-02-15T10:42:24.0510389Z INFO: Project key: test-repo
2024-02-15T10:42:24.0510993Z INFO: Base dir: /azure/Build_Agent/_work/8/s
2024-02-15T10:42:24.0511418Z INFO: Working dir: /azure/Build_Agent/_work/8/s/.scannerwork
2024-02-15T10:42:24.0559472Z INFO: Load project branches
2024-02-15T10:42:24.2782545Z INFO: Load project branches (done) | time=222ms
2024-02-15T10:42:24.2819863Z INFO: Check ALM binding of project 'test-repo'
2024-02-15T10:42:24.4588447Z INFO: Detected project binding: BOUND
2024-02-15T10:42:24.4590810Z INFO: Check ALM binding of project 'test-repo' (done) | time=177ms
2024-02-15T10:42:24.4610708Z INFO: Load project pull requests
2024-02-15T10:42:24.6430069Z INFO: Load project pull requests (done) | time=182ms
2024-02-15T10:42:24.6456682Z INFO: Load branch configuration
2024-02-15T10:42:24.6466272Z INFO: Load branch configuration (done) | time=1ms
2024-02-15T10:42:24.6531081Z INFO: Load quality profiles
2024-02-15T10:42:24.9272858Z INFO: Load quality profiles (done) | time=274ms
2024-02-15T10:42:24.9329379Z INFO: Load active rules
2024-02-15T10:42:35.3108451Z INFO: Load active rules (done) | time=10378ms
2024-02-15T10:42:35.5335290Z INFO: Organization key: fisker-eng
2024-02-15T10:42:35.5341242Z INFO: Branch name: test_sc, type: short-lived
2024-02-15T10:42:35.5588882Z INFO: Preprocessing files...
2024-02-15T10:42:35.7540314Z INFO: 4 languages detected in 73 preprocessed files
2024-02-15T10:42:35.7540887Z INFO: 0 files ignored because of inclusion/exclusion patterns
2024-02-15T10:42:35.7541288Z INFO: 0 files ignored because of scm ignore settings
2024-02-15T10:42:35.7613662Z INFO: Loading plugins for detected languages
2024-02-15T10:42:35.7614587Z INFO: Load/download plugins
2024-02-15T10:42:36.3831389Z INFO: Load/download plugins (done) | time=621ms
2024-02-15T10:42:36.5979889Z INFO: Load project repositories
2024-02-15T10:42:36.8048269Z INFO: Load project repositories (done) | time=207ms
2024-02-15T10:42:36.8054397Z INFO: SCM collecting changed files in the branch
2024-02-15T10:42:36.9025182Z INFO: SCM collecting changed files in the branch (done) | time=96ms
2024-02-15T10:42:36.9077641Z INFO: Indexing files...
2024-02-15T10:42:36.9077932Z INFO: Project configuration:
2024-02-15T10:42:36.9080377Z INFO: Excluded sources: **/build-wrapper-dump.json
2024-02-15T10:42:36.9269874Z INFO: 73 files indexed
2024-02-15T10:42:36.9331918Z INFO: Quality profile for cpp: Sonar way
2024-02-15T10:42:36.9332265Z INFO: Quality profile for json: Sonar way
2024-02-15T10:42:36.9335888Z INFO: Quality profile for xml: Sonar way
2024-02-15T10:42:36.9336574Z INFO: Quality profile for yaml: Sonar way
2024-02-15T10:42:36.9337793Z INFO: ------------- Run sensors on module
test-repo
2024-02-15T10:42:37.0309063Z INFO: Load metrics repository
2024-02-15T10:42:37.2079380Z INFO: Load metrics repository (done) | time=177ms
2024-02-15T10:42:37.2122412Z INFO: Sensor cache enabled
2024-02-15T10:42:37.2144080Z INFO: Load sensor cache
2024-02-15T10:42:37.6938259Z INFO: Load sensor cache (404) | time=480ms
2024-02-15T10:42:39.0763378Z INFO: Sensor XML Sensor [xml]
2024-02-15T10:42:39.0849865Z INFO: 1 source file to be analyzed
2024-02-15T10:42:39.2722845Z INFO: 1/1 source file has been analyzed
2024-02-15T10:42:39.2723542Z INFO: Sensor XML Sensor [xml] (done) | time=197ms
2024-02-15T10:42:39.2725991Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-02-15T10:42:39.2736762Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-02-15T10:42:39.2741346Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-02-15T10:42:39.2742532Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2024-02-15T10:42:39.2743232Z INFO: Sensor IaC CloudFormation Sensor [iac]
2024-02-15T10:42:39.2834789Z INFO: 0 source files to be analyzed
2024-02-15T10:42:39.2939876Z INFO: 0/0 source files have been analyzed
2024-02-15T10:42:39.2940573Z INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=19ms
2024-02-15T10:42:39.2941514Z INFO: Sensor IaC Kubernetes Sensor [iac]
2024-02-15T10:42:39.3900141Z INFO: 0 source files to be analyzed
2024-02-15T10:42:39.3995454Z INFO: 0/0 source files have been analyzed
2024-02-15T10:42:39.3996202Z INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=105ms
2024-02-15T10:42:39.4000681Z INFO: Sensor IaC AzureResourceManager Sensor [iac]
2024-02-15T10:42:39.4011758Z INFO: 0 source files to be analyzed
2024-02-15T10:42:39.4855642Z INFO: 0/0 source files have been analyzed
2024-02-15T10:42:39.4856372Z INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=86ms
2024-02-15T10:42:39.4857055Z INFO: Sensor TextAndSecretsSensor [text]
2024-02-15T10:42:39.9297994Z INFO: 22 source files to be analyzed
2024-02-15T10:42:40.3800299Z INFO: 22/22 source files have been analyzed
2024-02-15T10:42:40.3800998Z INFO: Sensor TextAndSecretsSensor [text] (done) | time=894ms
2024-02-15T10:42:40.3802633Z INFO: Sensor JavaScript inside YAML analysis [javascript]
2024-02-15T10:42:40.3839574Z INFO: No input files found for analysis
2024-02-15T10:42:40.3842195Z INFO: Hit the cache for 0 out of 0
2024-02-15T10:42:40.3858878Z INFO: Miss the cache for 0 out of 0
2024-02-15T10:42:40.3859472Z INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=5ms
2024-02-15T10:42:40.3860052Z INFO: Sensor CSS Rules [javascript]
2024-02-15T10:42:40.3865762Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2024-02-15T10:42:40.3867324Z INFO: Sensor CSS Rules [javascript] (done) | time=1ms
2024-02-15T10:42:40.3867858Z INFO: Sensor IaC Docker Sensor [iac]
2024-02-15T10:42:40.3891465Z INFO: 0 source files to be analyzed
2024-02-15T10:42:40.4108923Z INFO: 0/0 source files have been analyzed
2024-02-15T10:42:40.4109603Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=24ms
2024-02-15T10:42:40.4110723Z INFO: Sensor Serverless configuration file sensor [security]
2024-02-15T10:42:40.4117394Z INFO: 0 Serverless function entries were found in the project
2024-02-15T10:42:40.4228332Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-02-15T10:42:40.4258266Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=15ms
2024-02-15T10:42:40.4259225Z INFO: Sensor AWS SAM template file sensor [security]
2024-02-15T10:42:40.4278020Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
2024-02-15T10:42:40.4279979Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-02-15T10:42:40.4295511Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=2ms
2024-02-15T10:42:40.4296270Z INFO: Sensor CFamily [cpp]
2024-02-15T10:42:40.4795269Z INFO: CFamily plugin version: 6.52.1.66618
2024-02-15T10:42:40.4799308Z INFO: Using build-wrapper output: /build-wrapper-dump.json
2024-02-15T10:42:40.4808629Z INFO: Available processors: 16
2024-02-15T10:42:40.4832354Z INFO: Using 16 threads for analysis.
2024-02-15T10:42:43.0219541Z INFO: Found empty cache on server
2024-02-15T10:42:43.0349941Z INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
2024-02-15T10:42:43.0351327Z INFO: Z3 refutation rate: 0 out of 0
2024-02-15T10:42:43.0351802Z INFO: SE: 0 out of 0
2024-02-15T10:42:43.0358223Z INFO: Subprocess(es) done in 14ms
2024-02-15T10:42:43.0400813Z INFO: 19/19 files marked as unchanged
2024-02-15T10:42:43.0403128Z INFO: Cache: 0/0 hits, 125 bytes
2024-02-15T10:42:43.0404105Z INFO: 0 compilation units analyzed
2024-02-15T10:42:43.0594857Z INFO: ------------------------------------------------------------------------
2024-02-15T10:42:43.0595789Z INFO: EXECUTION FAILURE
2024-02-15T10:42:43.0596531Z INFO: ------------------------------------------------------------------------
2024-02-15T10:42:43.0599079Z INFO: Total time: 23.797s
2024-02-15T10:42:43.0941483Z INFO: Final Memory: 27M/136M
2024-02-15T10:42:43.0942550Z INFO: ------------------------------------------------------------------------
2024-02-15T10:42:43.1019209Z ##[error]ERROR: Error during SonarScanner execution
2024-02-15T10:42:43.1030146Z ERROR: Error during SonarScanner execution
2024-02-15T10:42:43.1094492Z ##[error]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
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:606)
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:241)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-02-15T10:42:43.1126916Z java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
2024-02-15T10:42:43.1127804Z * you are using the latest version of the build-wrapper and the CFamily analyzer
2024-02-15T10:42:43.1128257Z * your compiler is supported
2024-02-15T10:42:43.1128500Z * you are wrapping your build correctly
2024-02-15T10:42:43.1128783Z * you are wrapping a full/clean build
2024-02-15T10:42:43.1129822Z * 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
2024-02-15T10:42:43.1130873Z at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:606)
2024-02-15T10:42:43.1131453Z at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:241)
2024-02-15T10:42:43.1132125Z at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
2024-02-15T10:42:43.1132897Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
2024-02-15T10:42:43.1133669Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
2024-02-15T10:42:43.1134432Z at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
2024-02-15T10:42:43.1135206Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-02-15T10:42:43.1135957Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-02-15T10:42:43.1136669Z at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
2024-02-15T10:42:43.1137416Z at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
2024-02-15T10:42:43.1138462Z at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
2024-02-15T10:42:43.1139254Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-02-15T10:42:43.1140006Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-02-15T10:42:43.1140836Z at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
2024-02-15T10:42:43.1141609Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-02-15T10:42:43.1142358Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-02-15T10:42:43.1143071Z at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
2024-02-15T10:42:43.1143839Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-02-15T10:42:43.1144595Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-02-15T10:42:43.1145214Z at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
2024-02-15T10:42:43.1145711Z at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2024-02-15T10:42:43.1146435Z at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2024-02-15T10:42:43.1147448Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024-02-15T10:42:43.1148212Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2024-02-15T10:42:43.1149138Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024-02-15T10:42:43.1149882Z at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2024-02-15T10:42:43.1150569Z at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2024-02-15T10:42:43.1151233Z at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2024-02-15T10:42:43.1151789Z at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2024-02-15T10:42:43.1152485Z at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2024-02-15T10:42:43.1153050Z at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2024-02-15T10:42:43.1153511Z at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2024-02-15T10:42:43.1153950Z at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2024-02-15T10:42:43.1154283Z ERROR:
2024-02-15T10:42:43.1154687Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-02-15T10:42:43.4533410Z ##[error]The process '/azure/Build_Agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/bin/sonar-scanner' failed with exit code 1
2024-02-15T10:42:43.4567365Z ##[section]Finishing: SonarCloudAnalyze
iam running the static code anlaysis on android repo where i need to run mm command for compiling
the build wrapper is not capturing the build.