jenkinsci / dependency-track-plugin

Main repository for the official Dependency-Track Jenkins plugin
https://dependencytrack.org/
Apache License 2.0
44 stars 27 forks source link

Add generation of PDF-Excel report of the results after publishing to Dependency-Track #146

Closed marioja closed 1 year ago

marioja commented 1 year ago

This will add the creation of a PDF and Excel version of the dependency track results normally displayed on the web page. This was requested in our organization to be able to forward to stakeholders and management.

When you click on the Dependency Track Report link in Jenkins two links will appear: one for downloading the PDF version of the report and the second one for downloading an Excel version. The excel version is done via Apache POI and a small problem occurs when you open it which requires a repair but after that the report is ok.

The reports are created using the Jasper Report library. A new argument to the groovy dependencyTrackPublisher step called reportSubTitle for specifying the subtitle on the report header with identifying information. See the src/test/resources/test_pipeline.groovy as an example.

The dependency configuration page has been updated to reflect this new field and all existing and new JUnit test pass.

sephiroth-j commented 1 year ago

see #147