-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Minor
-
Component/s: dependency-check-jenkins-plugin
-
None
Hi,
In the code of DependencyCheckBuilder, the suppression file is first set as an URL, then if it doesn't work it is set a a FilePath.
If there is a variable in the field but it is an URL, the substitution doesn't seem to be applied…
Then if it is set as a FilePath, strangely, in Option, the only way to get it, is as a String (see Options#getSuppressionFilePath() which returns a String and check if suppressionFile is an instance of String, which can never happen!).
It makes suppression file impossible to work when it is used as a FilePath… the only workaround seems to use an URL of style file:/ but then I can't use a variable in it.