-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
I am using the forensics-api-plugin as part of the coverage-plugin for getting diffs. To determine the reference build, I call
discoverReferenceBuild()
in my pipeline.
Doing so revealed that sometimes I would not get diffs. The reason seems to be that coverage can be disabled on a per-build basis in my case, thus the reference build sometimes does not contain any coverage data.
For this reason, I would like to see support for some reference build filtering options, especially by action class and action ID.
In the warnings plugin I added a customization of the reference build
https://github.com/jenkinsci/warnings-ng-plugin/blob/c538f186e085cd0ad58406a134aa9737982bb085/plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesPublisher.java#L234
It would make sense to use a similar way for the coverage plugin.
I am not sure if this can or should be generalized in the forensics plugin.