-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
Jenkins core: 2.164.2
Dependency Check Plugin: 4.0.2
When you configure the field Global Data Directory in the global Jenkins configuration page to use the ${HOME} environment variable, e.g. ${HOME}/owasp-nvd, then the ${HOME} variable gets referenced corectly in freestyle jobs. You see something like this in the build log:
... [DependencyCheck] -dataDirectory = /opt/jenkins/owasp-nvd ...
However, the ${HOME} variable doesn't get referenced corectly in Pipeline jobs when using the dependencyCheckAnalyzer() step:
... [DependencyCheck] -dataDirectory = /opt/jenkins/ws/CheckOWASP_DataDir.Pipeline/${HOME}/owasp-nvd ...
Note: The fields for the dateDirectory are neither configured in the freestyle job nor in the pipeline job! Just in the global configuration page!