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

          [JENKINS-39472] Allow job throttling based on job name regex

          Tuukka Mustonen created issue -
          Tuukka Mustonen made changes -
          Description Original: 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
          New: 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 made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

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

              Created:
              Updated: