Hello @simo-esko ,
After some investigation and thanks to your logs, I could notice that Azure DevOps automatically converts the value of cliSources to an absolute path relative to the root folder (instead of forwarding the value as-is to the Scanner CLI), because we mark it in our task configuration as being a path.
So when you set src\react\React.Web in cliSources, what our task sees is E:\agent_work\7\s\src/react/React.Web.
You have multiple workarounds to this:
- Do not set
cliSourcesand instead definesonar.sourcesin theextraPropertiesas a relative path - Set
cliSourcesas an absolute path already (so, starting from yoursonarProjectBaseDir).
I’ve created a ticket SONARAZDO-440 which you can track to follow our progress on this, as we will likely want to workaround this Azure behavior.