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

Allow job throttling based on job name regex

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When throttling a set of jobs, to avoid having to manage job categories in System Configuration (that I don't necessarily have permissions to access), it would be nice if we could throttle builds by job names.

      Consider this sequence of jobs:

      PROJECT-build
      PROJECT-ENV1-deploy
      PROJECT-ENV1-test
      PROJECT-ENV2-deploy
      PROJECT-ENV2-test
      PROJECT-ENV2-perf_test
      

      I could configure two categories and attach ENV1 and ENV2 jobs to those.

      However, it would be easier if I could just throttle builds per job name as in:

      • ^PROJECT-ENV1-.*$ for env #1 jobs
      • ^PROJECT-ENV2-.*$ for env #2 jobs

      The problems with having to maintain categories is:

      • Need permissions to Manage Jenkins > Configure System
      • Cannot create categories via Job DSL plugin
      • It's unneeded extra work if you follow sensible naming conventions and use regex

        Attachments

          Activity

          tuukkamustonen Tuukka Mustonen created issue -
          tuukkamustonen Tuukka Mustonen made changes -
          Field Original Value New Value
          Description When throttling a set of jobs, to avoid having to manage job categories in System Configuration (that I don't necessarily have permissions to access), it would be nice if we could throttle builds by job names.

          Consider this sequence of jobs:

          {noformat}
          PROJECT-build
          PROJECT-ENV1-deploy
          PROJECT-ENV1-test
          PROJECT-ENV2-deploy
          PROJECT-ENV2-test
          PROJECT-ENV2-perf_test
          {noformat}

          I could configure two categories and attach ENV1 and ENV2 jobs to those.

          However, it would be easier if I could just throttle builds per job name as in:

          - {{^PROJECT-ENV1-.*$}} for env #1 jobs
          - {{^PROJECT-ENV2-.*$}} for env #2 jobs

          The problems with having to maintain categories is:

          - Need permissions to {{Manage Jenkins > Configure System}}
          - Cannot create categories via Job DSL plugin
          - Maintaining categories is not really needed if you follow sensible naming conventions and use regex
          When throttling a set of jobs, to avoid having to manage job categories in System Configuration (that I don't necessarily have permissions to access), it would be nice if we could throttle builds by job names.

          Consider this sequence of jobs:

          {noformat}
          PROJECT-build
          PROJECT-ENV1-deploy
          PROJECT-ENV1-test
          PROJECT-ENV2-deploy
          PROJECT-ENV2-test
          PROJECT-ENV2-perf_test
          {noformat}

          I could configure two categories and attach ENV1 and ENV2 jobs to those.

          However, it would be easier if I could just throttle builds per job name as in:

          - {{^PROJECT-ENV1-.*$}} for env #1 jobs
          - {{^PROJECT-ENV2-.*$}} for env #2 jobs

          The problems with having to maintain categories is:

          - Need permissions to {{Manage Jenkins > Configure System}}
          - Cannot create categories via Job DSL plugin
          - It's unneeded extra work if you follow sensible naming conventions and use regex
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tuukkamustonen Tuukka Mustonen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: