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

Multiple copies of the same job clubber workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • docker-plugin
    • None
    • Jenkins: 2.121.1
      Ubuntu: 16.04
      Docker Plugin: 1.1.5

      So we have created a Docker image to do the builds and configured Jenkins to use it. Our goal is to use this image to do as many of the builds as possible. All seems ok, Jenkins is able to spin the image and run builds in them, the issue we are facing is that if we trigger the same job around the same time they cripple each other because Jenkins is not allocating workspaces for the different copies of the job, the way it does when we ran it on a regular slave.

      So on a regular slave as long as we have allow concurrent builds bit set on, Jenkins will create directories under the workspace with names line jobName@2, jobName@3, etc.

      That is the behavior we are not seen we running in a docker container.

      All docker  containers have volume amount to /home/jenkins/workspace.

      Any help would be very much appreciated.

      Thanks

      /Sam

       

       

       

            pjdarton pjdarton
            saml Samuel Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: