Jenkins Pipeline Job Build

Viewed 4658

I am trying to build a Jenkins Pipeline job. I am trying to put sonarqube scanner configurations into Jenkins pipeline job's Groovy script. Sonarqube configurations in Jenkins Pipeline Job Groovy Script

But when I build the above job I get the following error- 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"

enter image description here

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- enter image description here

Now I am getting the error -

enter image description here

Could anyone please help me with the above issue.

2 Answers
Related