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

JenkinsTriggerHelper can wait for too long if job allows concurrent builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • java-client-api
    • None

      After triggering a build, JenkinsTriggerHelper waits until job.isInQueue() returns false. But this only checks if any build of the job is in the queue, not the particular build we triggered.

      An alternative is to wait until queueItem.getExecutable() returns non-null.

            staffanlarsen Staffan Larsen
            staffanlarsen Staffan Larsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: