Error in sonar pipeline

Hello I’m getting an error during the sonarcloud scan that I’ve never get before in my project pipeline, What I can do to solve this? It’s a next project with typescript


ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed. (exit code = 2)

Hello Leticia,

Have you tried to add the -X switch to have more details ?
you also can add the option sonar.scanner.force-deprecated-java-version=true in your Sonar
[[ Task : Prepare Analysis Configuration (DEVOPS) - SonarQubePrepare (Yml) ]]

1 Like

To complement @jycorbel’s suggestion, take a look at the documentation on Scanner Environment