The Dependency-Track Jenkins plugin aids in publishing CycloneDX and SPDX Bill-of-Material (BOM) documents as well as Dependency-Check XML reports to the Dependency-Track platform.
Publishing BOMs can be performed asynchronously or synchronously.
Asynchronous publishing simply uploads the BOM to Dependency-Track and the job continues. Synchronous publishing waits for Dependency-Track to process the BOM after being uploaded. Synchronous publishing has the benefit of displaying interactive job trends and per build findings.
Once configured with a valid URL and API key, simply configure a job to publish the artifact.
Dependency-Track project: Specifies the unique project ID to upload scan results to. This dropdown will be automatically populated with a list of projects.
Artifact: Specifies the file to upload. Paths are relative from the Jenkins workspace.
- Artifact Type: Options are:
- Software Bill of Material (CycloneDX or SPDX)
- Dependency-Check Scan Result (XML)
- Synchronous mode: Uploads a BOM to Dependency-Track and waits for Dependency-Track to process and return results. The results returned are identical to the auditable findings but exclude findings that have previously been suppressed. Analysis decisions and vulnerability details are included in the response. Synchronous mode is possible with Dependency-Track v3.3.1 and higher.
To setup, navigate to Jenkins » System Configuration and complete the Dependency-Track section.
The following permission should be assigned to the API key configured above.
|BOM_UPLOAD||Allows the uploading of CycloneDX and SPDX BOMs|
|SCAN_UPLOAD||Allows the uploading of Dependency-Check XML reports|
|VIEW_PORTFOLIO||Allows the plugin to list the projects in the dropdown|
|VULNERABILITY_ANALYSIS||Allows access to the findings API for trending and results (synchronous mode only)|
|PROJECT_CREATION_UPLOAD||Allows the dynamic creation of projects (if enabled by the plugin)|