Closed msymons closed 9 months ago
Thanks @msymons. I'm the creator of the tool, if you do decide to integrate this, please do reach out to me if u run into issues or concerns.
This function goes beyond what this plugin is intended for. It is not a generic SBOM plugin and does not call an external executable, for whatever reason.
You can do this yourself in your Jenkins pipeline.
sbomqs
and capture the output: def out = sh(script: 'sbomqs score <sbom-file>', returnStdout: true).trim()
def score = Float.parseFloat(out.split(' ')[0])
if (score < 9.0) { error 'sbom quality to low' }
dependencyTrackPublisher artifact: '<sbom-file>', ..., projectProperties: [tags: ["sbomqs=${score}"]]
Is your feature request related to a problem? Please describe.
A DT server with several hundred projects will often have a real variance in BOM quality. This might be caused by a number of things:
cyclonedx-maven-plugin
and thus may be lower qualityDescribe the solution you'd like
Incorporate the sbomqs tool into the DT Jenkins plugin. This will allow for several pieces of functionality:
Additional context
Here is a screenshot showing labels in DT that have been created by
sbomqs
The tool will take care of removing old tags... important if (say) an upgrade of the tool that generates the BOM improves the score.