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

ability to configure throttling of matrix parents and children

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Thanks for this great plugin! Right now we can use throttleConcurrentBuilds to configure basic throttling on a matrix job, but by default, this only configures throttling for the parent job. To configure throttling for the child builds and not the parent, we use this workaround:

      throttleConcurrentBuilds {
          categories(['our-category'])
      }
      configure { project ->
          project / 'properties' / 'hudson.plugins.throttleconcurrents.ThrottleJobProperty' << 'matrixOptions' {
              throttleMatrixBuilds(false)
              throttleMatrixConfigurations(true)
           }
      }
      

      It would be great to configure those options directly with job-dsl for matrix jobs.

            daspilker Daniel Spilker
            mcrooney mcrooney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: