Iam running build wrapper with bitbake command , then iam getting following error
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed. Please make sure that:
* you are using the latest version of the build-wrapper and the CFamily analyzer
* you are correctly invoking the scanner with correct configuration
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* you are providing the path to the correct build-wrapper output directory
* you are building and analyzing the same source checkout, absolute paths must be identical in build and analysis steps
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:396)
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:127)
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)
Hi,
The error which i posted is not coming now, and analysis is passed but it is saying 0 files are indexed
08:16:39.148 INFO: 0 files ignored because of inclusion/exclusion patterns
08:16:39.148 INFO: 0 files ignored because of scm ignore settings.
I have given the sonar properties as below
sonar.projectKey=********
sonar.organization=*******
sonar.projectName=*******
sonar.sources=/path/to/my/src
sonar.inclusions=/path/to/my/src/*.c
sonar.cfamily.build-wrapper-output=path to build wrapper json
sonar.verbose=true
And also iam seeing in pipeline log that build wrapper json file is excluded as below
**Excluded sources: /build-wrapper-dump.json, but i didnot gave any exclusion
I have run the analysis without adding inclusions and exclusions. But iam getting error like “The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed”
Please find the attached analysis pipeline analysis.log (253.0 KB)
log
i have given sonar-project.properties:
sonar.projectKey=********
sonar.organization=*******
sonar.projectName=*******
sonar.sources=/path/files/
sonar.cfamily.build-wrapper-output=/path/