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

Triggering many (100+) concurrent builds causes some builds to not get parameters set


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Labels:
    • Environment:
    • Similar Issues:


      The problem is that certain job runs are not passed the parameters they should be getting and they fail.

      This seems to happens more when 100 or more job runs are triggered concurrently by a trigger. Sometimes with as little as 50.


      The failed jobs seem to get an executor on a worker, and start running but fail because the parameters they should have received aren't there. So the processing that expects valid parameters values fails.


      To test this setup I setup 2 Pipeline groovy jobs. The content of both jobs is attached.

       Parent job

      • runs on a worker provisioned by the GCE plugin
      • is triggered with some parameters, including 1 that tells it how many instances of the child job to trigger

      Child job

      • is triggered multiple times by the parent job and passed some parameters
      • each run of this job requires its own worker 
      • does something reasonably simple
           - verifies the worker it is running on is ready by checking for a file (this is just verifying that any necessary build caches like gradle, npm, pip, are on the worker)
           - using the parameters passed in by the parent job, it tries to download a file from GCS
           - then it sleeps for 15 mins, just to hold the worker
      • When this job fails, it is because the parameters it should have received are missing and it can't do the download of an artifact from GCS


      I have attached screen shots of what the parameters page looks like on a successful run as well as an unsuccessful run.




            • Assignee:
              zombiemoose Rachel Yen
              arash arash m
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: