Sometimes we need to define several unrelated projects to a team, each project having several jobs.

      One solution is to duplicate the groups which we want to avoid, and the other is to have a single group with a slightly more complex regexp.

      Another solution could be multiple patterns:

      ^build_my_first_project_.*
      ^test_my_first_project_.*
      ^build_the_second_one_.*
      ^test_the_second_one_.*
      

      Instead of:

      ^(build|test)_(my_first_project_|the_second_one_).*
      

      Not everyone in the team is comfortable with (even simple) regular expressions, so we could trade a bit of duplication for readability.

      I stole the idea from this plugin:
      https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin#BuildBlockerPlugin-Howtouse

          [JENKINS-15859] Multiple patterns for job authorizations

          Dridi Boukelmoune created issue -
          Oleg Nenashev made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

          Oleg Nenashev added a comment -

          Removed default assignee.
          Feature is not mandatory, so please feel free to contribute.

          Oleg Nenashev added a comment - Removed default assignee. Feature is not mandatory, so please feel free to contribute.
          Oleg Nenashev made changes -
          Assignee Original: Daniel Petisme [ danielpetisme ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146661 ] New: JNJira + In-Review [ 176673 ]

            Unassigned Unassigned
            dridi Dridi Boukelmoune
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: