Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-2957

Use regular expression patterns to associate projects with users and groups

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11
    • Fix Version/s: 4.1
    • Labels:
      None

      Description

      We have a fixed naming pattern for our projects

      • app - trunk
      • app-1.2.0 - branch for the 1.2.0 version
      • app-1.3.0 - branch for the 1.3.0 version

      When creating a new branch we need to associate the group "app" to the new branch project app-[0-9]\.[0-9]\.[0-9] after the first Sonar analysis has been run.
      In Jenkins there is a "Role Strategy Plugin" (https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin) that allows to assign roles to projects, selected by a regular expression pattern:

      app -> (app|app-.*)
      

      This ties all projects, matching the pattern "(app|app-.*)", to the "app" group.
      In Sonar there could be a similar mechanism in the Security -> Project Roles. A new entry could define a pattern for projects instead of defining a new project role for each new project.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mrumpf Michael Rumpf
              Votes:
              13 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: