Development Tools Continuous Integration with Jenkins Practical Jenkins Jenkins and Docker

Rafael Colon
Rafael Colon
2,597 Points

Docker Python Example not working

I do not get a result that works.

[Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] sh

  • docker inspect -f . python /Users/Shared/Jenkins/Home/workspace/docker_multi_branch_master@tmp/durable-130de691/script.sh: line 1: docker: command not found [Pipeline] sh
  • docker pull python /Users/Shared/Jenkins/Home/workspace/docker_multi_branch_master@tmp/durable-a293a0da/script.sh: line 1: docker: command not found [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 127 Finished: FAILURE

I went to /Users/Shared/Jenkins/Home/workspace/docker_multi_branch and can run the docker pull python. The command is found doing it manually. Not sure what the @tmp directory is. That's empty.