sonarqube - How can a Sonar widget show a project level property? -


i attempting display project level property on widget. global properties work fine, project properties come blank.

i using:

<%= configuration('sonar.projectlevel.prop1') -%> 

in .erb file, sonar.projectlevel.prop1 property name. comes blank. if put in global property instead of project property,the property displayed.

when open project dashboard , go configuration | settings, can see project property , value. can retrieve using ws properties api specifying resource name, value must there.

should work? if so, how?

i have posted question mailing, have not had response. surely can work , easy do. must missing simple.

thanks, ben

simon brandhof replied the mailing list question solution. display project level property in widget use:

property.value('sonar.projectlevel.prop1', @project.id) 

instead of:

configuration('sonar.projectlevel.prop1') 

thanks simon!


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -