[ERROR] [Sonar Gradle Plugin] Pipeline does not stop if Sonar failed (Version 6.0.0)

  • ALM used : Azure DevOps
  • CI system used : Azure DevOps
  • Scanner command used : gradlew sonar
  • Languages of the repository : java, gradle
  • Error observed : Build does not stop (Build successful), but sonar task failed!
  • Steps to reproduce : do gradlew sonar with new gradle plugin 6.0.0 version
  • Potential workaround : dont know, fix it? :slight_smile: *

Hi,

Welcome to the community!

Could you be more specific about this:

Do you mean that analysis completed successfully, but the project failed its Quality Gate? Or that analysis errored-out?

 
Ann

(post deleted by author)

Use of preview features have been detected during analysis. Enable DEBUG mode to see them.

QUALITY GATE STATUS: FAILED - View details on SonarQube Cloud

[Incubating] Problems report is available at: file:///home/vsts/work/1/s/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.

BUILD SUCCESSFUL in 1m 22s

Hi,

I don’t find your list of analysis log warnings terribly helpful. Am I correct in thinking that you want your pipeline to fail when your Quality Gate fails?

The example in the docs includes this.

 
HTH,
Ann