Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34454

Add support for Docker-Toolbox/Windows

XMLWordPrintable

      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)
      [...]
      

            jglick Jesse Glick
            martoe Martin E
            Votes:
            11 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated: