Relative Content

Tag Archive for groovysonarqubejenkins-groovy

I am unable to fail the Jenkins pipeline based on Sonar results

I am new to groovy. I am using Jenkins scripted pipeline. It’s a gradle project. We are using the library in our Jenkinsfile. Basically, I want to fail the pipeline based on Sonar results. Below is the library code that I import in my Jenkinsfile. By default, stopOnFailure:false. I should make it as true to fail the pipeline. How do I pass this argument in my Jenkinsfile.