SonarCloudAnalyze@1 task when executed by different agent job to that of SonarCloudPrepare@1 in azure devops fails with the following error
##[error][SQ] The ‘Prepare Analysis Configuration’ task was not executed prior to this task
As a workaround executing on the same agent solves it for now, but my ci runs takes 4X time than that of running the dotnet test in separate job agent.
here is insight to my pipeline tasks in sequence,
DotNetCoreCLI@2 - restore
DotNetCoreCLI@2 - build
DotNetCoreCLI@2 - test (CoverletOutputFormat=opencover)
publish open cover artifact
download published artifact
consolidating all into one job works.
Appreciate your suggestions.