-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
How to reproduce :
- setup a docker4mac machine as a ssh slave
- run this pipeline :
node ('slave'){ docker.image("ubuntu").inside{ sh 'ps -ef' } }
shell step fail to run docker command.
This is expected as docker4mac client binary is installed under /usr/local/bin which isn't part of non-interactive ssh session PATH. So, never mind, let's declare a docker tool installation
node ('slave'){ docker.withTool("docker4mac"){ docker.image("ubuntu").inside{ sh 'ps -ef' } } }
Still falling.
Not sure about possible workaround.
- duplicates
-
JENKINS-37951 WithContainerStep.Decorator fails to call DockerTool.getExecutable on toolName
- Resolved