Error Running sonar.cfamily analysis in VSTS


(Nick Paterakis) #1

I’m trying to execute a simple scan over a Linux Debian/perl based code (without having to do a full build) -getting error:

018-07-02T08:32:48.7072732Z INFO: Using 1 thread for analysis according to value of “sonar.cfamily.threads” property.
2018-07-02T08:32:48.7274550Z ##[error]ERROR: Property “” was not specified.

which stops execution. VSTS is cloud hosted and using Sonar cloud to undertake analysis.

(Fabrice Bellingard) #2

Hi Nick,

This error means that SonarCloud found C/C++ files which require first a full build (with the C/C++ build wrapper) to make sure the correct configuration is passed through the build wrapper output file. So in other words: it’s not possible to run an analysis on C/C++ without having first built the source code.