Hi,
your question is similar to this posting
And i think the recommendation of @OlivierK is reasonable.
Another somewhat ‘quirky’ approach would be to wrap the Sonarqube analysis in try / catch
for special pipelines, i.e. the Jenkins pipeline step waitForQualityGate() continuing the pipeline
even if quality gate fails. That way you’ll get all issues if any but your pipeline goes on.
Gilbert