jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-65728] docker-workflow-plugin wrongfully assumes /bin directory in tool

Open
#670 1 comment 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

I've been adding Docker 20.10 to Jenkins as a tool, but couldn't get it to work with docker-workflow's

```
docker.withTool('Docker $version')
```

After debugging the issue, I've found out that the withTool function assumes the tool uses a /bin directory inside the tool directory, which it doesn't.

I've built a branch which circumvents this issue by adding both the 'root' of the tool as well as the /bin directory for backwards-compatibility:

https://github.com/FireDrunk/docker-workflow-plugin/commit/ee2e7cf17d4acd8411d8f38172c144956d8709fd

Installer used: https://download.docker.com/linux/static/stable/x86_64/docker-20.10.6.tgz

---
Originally reported by firedrunk, imported from: docker-workflow-plugin wrongfully assumes /bin directory in tool


  • status: Open
  • priority: Critical
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

I've been adding Docker 20.10 to Jenkins as a tool, but couldn't get it to work with docker-workflow's



docker.withTool('Docker $version') 


After debugging the issue, I've found out that the withTool function assumes the tool uses a /bin directory inside the tool directory, which it doesn't.

I've built a branch which circumvents this issue by adding both the 'root' of the tool as well as the /bin directory for backwards-compatibility:
https://github.com/FireDrunk/docker-workflow-plugin/commit/ee2e7cf17d4acd8411d8f38172c144956d8709fd

Installer used: https://download.docker.com/linux/static/stable/x86_64/docker-20.10.6.tgz

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.