[JIRA] (JENKINS-57237) ${HOME} in global configured data dir is ignored in pipeline dependencyCheckAnalyzer

1 view
Skip to first unread message

mail@jochen-fuerbacher.de (JIRA)

unread,
Apr 30, 2019, 3:42:02 AM4/30/19
to jenkinsc...@googlegroups.com
Jochen A. Fürbacher created an issue
 
Jenkins / Bug JENKINS-57237
${HOME} in global configured data dir is ignored in pipeline dependencyCheckAnalyzer
Issue Type: Bug Bug
Assignee: Unassigned
Components: dependency-check-jenkins-plugin
Created: 2019-04-30 07:41
Environment: Jenkins core: 2.164.2
Dependency Check Plugin: 4.0.2
Priority: Minor Minor
Reporter: Jochen A. Fürbacher

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
...
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mail@jochen-fuerbacher.de (JIRA)

unread,
Apr 30, 2019, 3:48:02 AM4/30/19
to jenkinsc...@googlegroups.com
Jochen A. Fürbacher updated an issue
Change By: Jochen A. Fürbacher
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:

{code :java }

...
[DependencyCheck]  -dataDirectory = /opt/jenkins/owasp-nvd
...
{code}

However, the {{$ \ {HOME}}} variable doesn't get referenced corectly in Pipeline jobs when using the {{dependencyCheckAnalyzer()}} step:
{code
:java }

...
[DependencyCheck]  -dataDirectory = /opt/jenkins/ws/CheckOWASP_DataDir.Pipeline/${HOME}/owasp-nvd
...
{code}

*Note*: The fields for the dateDirectory are neither configured in the freestyle job nor in the pipeline job! Just in the global configuration page!

steve.springett@owasp.org (JIRA)

unread,
Jul 6, 2019, 11:25:03 PM7/6/19
to jenkinsc...@googlegroups.com
Steve Springett closed an issue as Won't Do
 

No longer relevant with v5.0.0

Change By: Steve Springett
Status: Open Closed
Resolution: Won't Do
Reply all
Reply to author
Forward
0 new messages