jenkins - unable to get value of sonarqube usingjenkins pipeline -


i have 1 master , 1 slave jenkins, trying run jenkins pipeline execute sonaqube analysis , check value. used " waitforqualitygate()" method , withsonarqubeenv:'sonarqube'.

when run pipeline, sonar code analysis done getting error in while run waitforqualitygate().

following error log.

 info: analysis successful, can browse   http://localhost:9000/dashboard/index/fhlbny-commons  info: note able access updated dashboard once   server has processed submitted analysis report   info: more report processing @   http://localhost:9000/api/ce/task?id=av50_afntvju8mnjh7t2  info: task total time: 7.003 s  info: ----------------------------------------------------------------------  --  info: execution success  info: ----------------------------------------------------------------------  --  info: total time: 7.996s  info: final memory: 47m/268m  info: ----------------------------------------------------------------------  -- [pipeline] waitforqualitygate [pipeline] } [pipeline] // node  [pipeline] end of pipeline java.lang.illegalstateexception: unable sonarqube task id and/or   server name. please use 'withsonarqubeenv' wrapper run analysis. @  

org.sonarsource.scanner.jenkins.pipeline.waitforqualitygatestep$execution.processstepparameters(waitforqualitygatestep.java:125) @

org.sonarsource.scanner.jenkins.pipeline.waitforqualitygatestep$execution.start(waitforqualitygatestep.java:107) @ org.jenkinsci.plugins.workflow.cps.dsl.invokemethod(dsl.java:137) @ org.jenkinsci.plugins.workflow.cps.cpsscript.invokemethod(cpsscript.java:113)


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -