jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-34454] Add support for Docker-Toolbox/Windows

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

Description

Make dockerized pipelines executable when running Jenkins on a Windows platform (e.g. for testing purposes when no Unix box is at hand).

When running Docker-Toolbox on Windows, the "docker" command is available, but the plugin fails to invoke it because it uses the pipeline "sh" command (see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#modifying-for-windows-variations)

```
java.io.IOException: Cannot run program "nohup" (in directory "d:\dev\jenkins\local\data\workspace\multibranch\master"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[...]
at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:106)
at org.jenkinsci.plugins.docker.workflow.Docker.node(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:63)
at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:104)
at WorkflowScript.run(WorkflowScript:4)
[...]

```

---
Originally reported by martoe, imported from: Add support for Docker-Toolbox/Windows


  • assignee: jglick
  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • label(s): windows
  • resolution: Unresolved
  • votes: 11
  • watchers: 17
  • imported: 2025-12-07

Raw content of original issue

Make dockerized pipelines executable when running Jenkins on a Windows platform (e.g. for testing purposes when no Unix box is at hand).

When running Docker-Toolbox on Windows, the "docker" command is available, but the plugin fails to invoke it because it uses the pipeline "sh" command (see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#modifying-for-windows-variations)


java.io.IOException: Cannot run program "nohup" (in directory "d:\dev\jenkins\local\data\workspace\multibranch\master"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[...]
at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:106)
at org.jenkinsci.plugins.docker.workflow.Docker.node(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:63)
at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(jar:file:/d:/dev/jenkins/local/data/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:104)
at WorkflowScript.run(WorkflowScript:4)
[...]

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.