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

Throttle concurrent builds and lockable resource do not work with block on upstream

XMLWordPrintable

      Setup

      Set Jenkins to have one node (master), and two executors.
      Create a throttle category my-category with global max 1.

      Create freestyle project A.
      Build step `sleep 10`.

      Create freestyle project B.
      Throttle on my-category.
      Build step `sleep 10`.

      Create freestyle project C.
      Throttle on my-category.
      Build step `sleep 10`.
      Post-build, trigger downstream project D.

      Create freestyle project D.
      Block on upstream jobs.
      Build step `sleep 10`.

      Trigger A, B, C, and D, in that order.

      Expected

      A starts.
      B starts.
      A finishes.
      B finishes.
      C starts.
      C finishes.
      D starts.
      D finishes.

      Actual

      A starts.
      B starts.
      A finishes.
      D starts.
      B finishes.
      C starts.
      D finishes.
      C finishes.

      D does not wait on C.

      I also tried lockable resource plugin with the same setup, but it didn't work either.

      I do not know of any workaround.

            Unassigned Unassigned
            draperp Paul Draper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: