Scanner error after migrating azure devops task to v2

Hi,

on a very specific repository (quite large typescript/javascript repository) the migration to the V2 azure devops task generated a side effect. The pipeline run forever (until it timeouts) but in reality it is failing in 5 minutes. This behaviour is directly related to the update of the task of the SonarCloud extension of Azure DevOps.

Here the first error (that repeats several times)

and after some minutes:

Any suggestion?

Hey there!

Do you have SONAR_SCANNER_OPTS set in your build variables to provide more memory to the scanner? If so, in this new version, you’ll need to migrate to the SONAR_SCANNER_JAVA_OPTS variable.

Hi Colin,

setting this new environment variables solved the OOM error, thank you!!

Though we still see tons of this errors from the scanner. All of them seems be related to the scan of specific “tsconfig.json” files in server subdirectory of the project (it’s a quite large lerna monorepo)

Ciao,
Andrea

Hey there.

Could you raise a new thread, providing a text-based snippet of logs and the tsconfig.json mentioned in the logs? I’m sure we can sort it out.

1 Like