dependency-check.sh is checked on Docker host instead of Docker agents

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Minor
    • None
    • Environment:

      In a declarative pipeline with multiple steps that all use Docker containers, I use a container that has the required tooling (.NET SDK) and dependency-check installed. This container should run the dependency-check Jenkins plugin. After setting the tool up in the global settings with the path of the preinstalled binaries in the container and running the pipeline I got the same error as described in the linked issue: Couldn’t find any executable in <path>.

      I found out that the availability of the tool is not checked on the configured agent for the step (Docker container) but on the agent running the job (the Docker host). If I place an executable called dependency-check.sh at <path>/bin/ the plugin continues running and the check is performed as expected. 

      I hope that helps reproducing the issue and maybe someone finds the workaround useful until a fix is implemented. 

            Assignee:
            Nikolas Falco
            Reporter:
            Tobi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: