Template for a good bug report, formatted with Markdown:
- versions used:
SonarScanner for Azure DevOps 1.8.0
- error observed:
##[error]Cannot read property ‘concat’ of undefined
- steps to reproduce:
SonarCloudPrepare with ScannerMode set to CLI and no SONAR_SCANNER_OPTS set
- potential workaround
set SONAR_SCANNER_OPTS should make it work
Looking at the code, it seems like if the scanner mode is set to CLI, the scanner will try to get the SONAR_SCANNER_OPTS and concat them with other variables, something that will fail when there are no SONAR_SCANNER_OPTS set.
Is there a reason why its done like that? Or is it just a bug?