SonarCloudAnalyze@1 task failed today, when SonarCloudPrepare@1 was using 1.8.x. Yesterday, it used 1.7.x.
- Logged Error:
##[debug]Processed: ##vso[task.logissue type=error;]Unrecognized option: -%0AError: Could not create the Java Virtual Machine.%0AError: A fatal exception has occurred. Program will exit.
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
- azure-pipelines.yml:
- task: SonarCloudPrepare@1
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: SonarCloud
organization: abcdef
scannerMode: CLI
configMode: manual
cliProjectKey: R2D2
cliProjectName: 'SW - R2D2_SW'
cliSources: src
- task: SonarCloudAnalyze@1
displayName: 'Run Code Analysis'