jenkinsci/dependency-track-plugin

Include artifact name in Publishing Logline

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

When the plugin uploads an artifact (ie, BOM) to Dependency-Track then the resulting logline (tested using plugin v4.3.1) is:

11:43:55 [DependencyTrack] Publishing artifact to Dependency-Track - https://foo.bar.com

This is normally totally OK but does not allow for spotting certain problems. For example:

  • Dependency-Track rejects upload because it was not even a BOM (something that might have been clear from the filename). ie, Jenkins job has been misconfigured.
  • Everything is working... but preference is for JSON and BOM is XML.
  • Future: Dependency-Track stores uploaded BOM and we want to quickly see that naming convention is being followed

Describe the solution you'd like

Inclusion of filename in logline. eg:

11:43:55 [DependencyTrack] Publishing artifact xyz-BOM.JSON to Dependency-Track - https://foo.bar.com

Additional context

N/A