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

Throttle plugin "per project" doesn't work with Matrix jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 1.609.3, Windows Server 2008, Oracle's JRE 7 update 79
      throttle-concurrents 1.8.4

      The "per project" throttling is broken for matrix jobs.

      For testing, I've created a 96 element (12x8) matrix job. It's attached as CCI_Adm_Darrel_play_Matrix.xml.

      Control Attempt

      With no throttling, the quantity of concurrent child builds is limited only by my available executors.

      Attempt #1

      Throttling thusly:

      • this project alone – radio button SELECTED
      • max total builds – 7
      • max builds per node – 0 (infinite)
      • matrix master builds – check ON
      • matrix config builds – check ON

      RESULT Failure! No throttling happens.

      Attempt #2

      Throttling thusly:

      • this project alone – radio button SELECTED
      • max total builds – 7
      • max builds per node – 0 (infinite)
      • matrix master builds – check OFF
      • matrix config builds – check ON

      RESULT Failure! No throttling happens.

      Success via "category" throttling

      Throttling thusly:

      • System Config
        • "Manage Jenkins" > "Configure System" > (heading) "Throttle Concurrent Builds"
        • category name = darrel_play_matrix
        • max total builds = 7
        • max per node = 0
      • Job Config
        • throttle as part of categorie(s) – radio button SELECTED
        • max total builds = 7 (I expect this to be ignored)
        • max config builds = 7 (I expect this to be ignored)
        • multi-project category = "darrel_play_matrix" check ON
        • matrix master builds – check OFF
        • matrix config builds – check ON

      RESULT Success! This behaves exactly like I expect it to.

      However, my (strong) preference is to use "per project" throttling, so I don't have to create global throttling categories for 100s of developers.

        1. screenshot-3.png
          screenshot-3.png
          10 kB
        2. screenshot-2.png
          screenshot-2.png
          6 kB
        3. screenshot-1.png
          screenshot-1.png
          8 kB
        4. CCI_Adm_Darrel_play_Matrix.xml
          4 kB

            Unassigned Unassigned
            darrelvun Darrel Vuncannon
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: