Integrate sonarcloud in Jenkins pipeline

Hello, we are using Sonarcloud and would like to integrate it in our Jenkins pipeline, and i’d like to ask general questions related to implementation:

How do we stop builds/merges if a scan fails?
How do developer/author of a branch get notified when their build fails?

Thanks

Hello @Juan_Jose, welcome to our Community!

To integrate SonarCloud into your Jenkins pipeline, please have a look into our documentation. It is possible to pause the pipeline until the quality gate is computed.

The developer/author can be notified by:

Regards,

Alexandre.