Reporting in enterprise edition (Portfolio)

portfolios

(Kiran) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 6.7.5
  • what are you trying to achieve
    Trying to create a portfolio and see how reporting works in SonarQube and download the pdf report.
  • what have you tried so far to achieve this
    I’ve been working on the reporting part provided by enterprise edition.
    I’ve set up a project 11.0.0 and associated the project to the portfolio manually.
    When I open the portfolio dashboard to download the report I’m getting the following message.

I’m getting the following error on portfolio dashboard.

This portfolio is empty.

This portfolio has no projects, or none of associated projects has lines of code.

I’m still looking out for a possible solution to figure out what went wrong and fix this.


(G Ann Campbell) #2

Hi,

Here’s the relevant documentation for the version you’re using (it’s kinda buried). The relevant section is Calculation at the bottom of the page.

You’ve set up the structure of your portfolio, but SonarQube has not yet done the math to aggregate your portfolio values. Basically, you need to set recalculation to run on a regular basis (nightly?) to do the math and produce your Portfolios’ values.

Once you’ve done that, the “empty” message will go away, you’ll be able to download your PDF, and any email subscriptions (you can have the PDF emailed to you automatically) will kick in.

 
HTH,
Ann