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

job admin role on folder does not work

    XMLWordPrintable

Details

    Description

      Have created an Folder "Test" and a freestyle job dummy in it.

      Have created an Item Role with regex "(Test/.*)" and all possible rights for Item Roles.

      Have tested the link of the regex, Maching Project "Test/dummy" is shown.

      Have assigned the role to a user and have restarted jenkins.

      After login with the user, where the role is assigned, the folder is not shown and the user cannot create jobs.

      Attachments

        Activity

          oleg_nenashev Oleg Nenashev added a comment -

          "Have created an Item Role with regex "(Test/.)" and all possible rights for Item Roles.". "Test/." regular expression will not match the root folder, Jenkins does not append slash to the end of the path (it could be a good improvement though). Try doing "Test.*" instead

          oleg_nenashev Oleg Nenashev added a comment - "Have created an Item Role with regex "(Test/. )" and all possible rights for Item Roles.". "Test/. " regular expression will not match the root folder, Jenkins does not append slash to the end of the path (it could be a good improvement though). Try doing "Test.*" instead

          Thanks!. After rereading the documentation better solution seems to be following regex: "(^Test)|(^Test/.*)". This prevents from open Jobs outside the folder Test, eg. TestDummy.

          tkleiber Torsten Kleiber added a comment - Thanks!. After rereading the documentation better solution seems to be following regex: "(^Test)|(^Test/.*)". This prevents from open Jobs outside the folder Test, eg. TestDummy.

          People

            oleg_nenashev Oleg Nenashev
            tkleiber Torsten Kleiber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: