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

Pipeline job is not run in Docker container

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: docker-slaves-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.60.2
      docker-slaves-plugin: 1.0.7
      Pipeline: 2.5
      Pipeline: Job: 2.12.2
    • Similar Issues:

      Description

      When creating a pipeline job and select the job to be run in a Docker slave, the pipeline itself is not run in the container. When letting the pipeline stop with a "cat" command and listing running containers during the job is running, there is no slave container running.

       

      Steps to reproduce:

      Create job of type "Pipeline"

      Run the build inside Docker containers -> Main build container: Build Dockerfile

      Pipeline -> Pipeline Script:

      node {
      stage 'Wait forever'
      sh "cat /dev/zero > /dev/null"
      }

       

      Do a "docker ps" on the host to verify no container is running.

        Attachments

          Activity

          Hide
          ndeloof Nicolas De Loof added a comment -

          "Run the build inside Docker containers" option should not be exposed to pipelines. This only make sense for freestyle, pipelines should use dockerNode.

          Show
          ndeloof Nicolas De Loof added a comment - "Run the build inside Docker containers" option should not be exposed to pipelines. This only make sense for freestyle, pipelines should use dockerNode.
          Hide
          ndeloof Nicolas De Loof added a comment -

          fixed by 8710f2db7420a1ee856e22ca61315eace8a64ac0

          Show
          ndeloof Nicolas De Loof added a comment - fixed by 8710f2db7420a1ee856e22ca61315eace8a64ac0

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              szalkowski_alpiq Adam Szalkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: