I am trying to build a Jenkins Pipeline job. I am trying to put sonarqube scanner configurations into Jenkins pipeline job's Groovy script.
But when I build the above job I get the following error-
Also when I refer to Sonarqube documentation for integrating with Jenkins Pipeline job I get no information about setting the sonarqube properties which otherwise we have to set by adding a step - "execute sonarqube scanner"
Could anyone help in knowing how can we set the Sonarqube properties in jenkins pipeline job which otherwise we can specify in Maven or Freestyle Job Types in Jnekins (shown in above snapshot). Thanks.
Now I have changes the Groovy script of Jenkins Pipeline Job configuration-
Now I am getting the error -
Could anyone please help me with the above issue.