Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57237

${HOME} in global configured data dir is ignored in pipeline dependencyCheckAnalyzer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor 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!

            Unassigned Unassigned
            jochenafuerbacher Jochen A. Fürbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: