jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-53259] Jenkins Pipeline build fails when trying to jenkins docker plugin

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

Description

I have Jenkins master running in a docker container and using jenkins docker plugin, I am spawning a jenkins slave (jnlp) on a remote machine. 

Now, using my declarative pipelines I build my project where i spawn another docker container for builds (inside the slave container spawned by docker plugin)

This works if the build step has "echo". But when i try to run "sh" in build steps where sh just has "python --version" it gives the following error

sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@​tmp/durable-250f016b/jenkins-log.txt: No such file or directory

sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@​tmp/durable-250f016b/jenkins-result.txt.tmp: No such file or directory

mv: cannot stat '/workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@​tmp/durable-250f016b/jenkins-result.txt.tmp': No such file or directory

 

I am running jenkinsci/[blueocean|https://hub.docker.com/r/jenkinsci/blueocean/]:1.8.0 for Jenkins master

---
Originally reported by siddhant_aqr, imported from: Jenkins Pipeline build fails when trying to jenkins docker plugin


  • status: Open
  • priority: Major
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 6
  • watchers: 8
  • imported: 2025-12-07

Raw content of original issue

I have Jenkins master running in a docker container and using jenkins docker plugin, I am spawning a jenkins slave (jnlp) on a remote machine. 

Now, using my declarative pipelines I build my project where i spawn another docker container for builds (inside the slave container spawned by docker plugin)

This works if the build step has "echo". But when i try to run "sh" in build steps where sh just has "python --version" it gives the following error

sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-log.txt: No such file or directory
sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp: No such file or directory
mv: cannot stat '/workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp': No such file or directory

 

I am running jenkinsci/[blueocean|https://hub.docker.com/r/jenkinsci/blueocean/]:1.8.0 for Jenkins master

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.