• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • docker-workflow-plugin

      create a job called "my job" with the following pipeline

      node ("docker") {
          sh 'pwd'
          img = docker.image("ubuntu")
          img.inside {
              sh 'pwd'
          }
      }
      
      [Pipeline] Allocate node : Start
      Running on docker in /root/workspace/workspace/test-jobs/jnord/docker inside
      [Pipeline] node {
      [Pipeline] sh
      [docker inside] Running shell script
      + pwd
      /root/workspace/workspace/test-jobs/jnord/docker inside
      [Pipeline] sh
      [docker inside] Running shell script
      + docker inspect -f . ubuntu
      .
      [Pipeline] Run build steps inside a Docker container : Start
      $ docker run -t -d -u 0:0 -w "/root/workspace/workspace/test-jobs/jnord/docker inside" -v "/root/workspace/workspace/test-jobs/jnord/docker inside:/root/workspace/workspace/test-jobs/jnord/docker inside:rw" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ubuntu cat
      [Pipeline] withDockerContainer {
      [Pipeline] sh
      [docker inside] Running shell script
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/pid: Directory nonexistent
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/jenkins-log.txt: Directory nonexistent
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/jenkins-result.txt: Directory nonexistent
      [Pipeline] } //withDockerContainer
      $ docker stop 260e1e96255fd938e64d6bcd296ce616e01a40ece5ef093dfd97325418247904
      $ docker rm -f 260e1e96255fd938e64d6bcd296ce616e01a40ece5ef093dfd97325418247904
      [Pipeline] Run build steps inside a Docker container : End
      [Pipeline] } //node
      [Pipeline] Allocate node : End
      [Pipeline] End of Pipeline
      ERROR: script returned exit code -2
      Finished: FAILURE
      

          [JENKINS-33632] docker.inside broken with old client versions

          James Nord created issue -
          James Nord made changes -
          Summary Original: docker.inside broken with jobs with spaces in their names New: docker.inside broken

          James Nord added a comment - - edited

          Note: reproduces with a job without spaces in the name.

          [docker_inside] Running shell script
          sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/pid: Directory nonexistent
          sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/jenkins-log.txt: Directory nonexistent
          sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/jenkins-result.txt: Directory nonexistent
          

          James Nord added a comment - - edited Note: reproduces with a job without spaces in the name. [docker_inside] Running shell script sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/pid: Directory nonexistent sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/jenkins-log.txt: Directory nonexistent sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker_inside@tmp/durable-d8f4d687/jenkins-result.txt: Directory nonexistent
          James Nord made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]
          James Nord made changes -
          Environment Original: jenkins 1.625
          cloudbees docker workflow 1.2
          pipeline 1.14
          New: jenkins 1.625
          docker-commons:1.3.1
          docker-workflow:1.2
          durable-task:1.8
          pipeline-rest-api:1.0
          pipeline-stage-view:1.0
          pipeline-utility-steps:1.0
          workflow-aggregator:1.14
          workflow-api:1.14
          workflow-basic-steps:1.14
          workflow-cps-checkpoint:1.9
          workflow-cps-global-lib:1.14
          workflow-cps:1.14
          workflow-durable-task-step:1.14
          workflow-job:1.14
          workflow-multibranch:1.14
          workflow-scm-step:1.14
          workflow-step-api:1.14
          workflow-support:1.14
          James Nord made changes -
          Environment Original: jenkins 1.625
          docker-commons:1.3.1
          docker-workflow:1.2
          durable-task:1.8
          pipeline-rest-api:1.0
          pipeline-stage-view:1.0
          pipeline-utility-steps:1.0
          workflow-aggregator:1.14
          workflow-api:1.14
          workflow-basic-steps:1.14
          workflow-cps-checkpoint:1.9
          workflow-cps-global-lib:1.14
          workflow-cps:1.14
          workflow-durable-task-step:1.14
          workflow-job:1.14
          workflow-multibranch:1.14
          workflow-scm-step:1.14
          workflow-step-api:1.14
          workflow-support:1.14
          New: jenkins 1.625

          docker-commons:1.3.1
          docker-workflow:1.2
          durable-task:1.8
          pipeline-rest-api:1.0
          pipeline-stage-view:1.0
          pipeline-utility-steps:1.0
          workflow-aggregator:1.14
          workflow-api:1.14
          workflow-basic-steps:1.14
          workflow-cps-checkpoint:1.9
          workflow-cps-global-lib:1.14
          workflow-cps:1.14
          workflow-durable-task-step:1.14
          workflow-job:1.14
          workflow-multibranch:1.14
          workflow-scm-step:1.14
          workflow-step-api:1.14
          workflow-support:1.14

          Antonio Muñiz added a comment - Maybe related to https://github.com/jenkinsci/docker-workflow-plugin/pull/33 ?

          Antonio Muñiz added a comment - - edited

          I think it will work if you upgrade Pipeline to 1.15 (to pick up this commit). But it's not clear to me who is creating/trying to access the @tmp directory as you seem to have a set of versions all previous the @tmp change.

          Antonio Muñiz added a comment - - edited I think it will work if you upgrade Pipeline to 1.15 (to pick up this commit ). But it's not clear to me who is creating/trying to access the @tmp directory as you seem to have a set of versions all previous the @tmp change.

          James Nord added a comment -

          fixed by updating docker-workflow from 1.2 to 1.4 as suggested by jglick

          James Nord added a comment - fixed by updating docker-workflow from 1.2 to 1.4 as suggested by jglick
          James Nord made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            pierrebtz Pierre Beitz
            teilo James Nord
            Votes:
            5 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: