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

Offer a way to retrieve PermissionGroup IDs in API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Currently hudson.security.PermissionGroup API offers only getName() method, but this name is localizable. In Configuration-as-Code plugin we would like to use PermissionGroup IDs in order to define permissions from YAML.

      https://github.com/jenkinsci/configuration-as-code-plugin/blob/configuration-as-code-0.7-alpha/src/main/java/org/jenkinsci/plugins/casc/util/PermissionFinder.java#L52-L56

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/java/hudson/security/PermissionGroup.java
          http://jenkins-ci.org/commit/jenkins/7de5f7d00b866aa57bfd4cac251a7d6aebc1e315
          Log:
          JENKINS-51598 - Expose PermissionGroup IDs to API

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/security/PermissionGroup.java http://jenkins-ci.org/commit/jenkins/7de5f7d00b866aa57bfd4cac251a7d6aebc1e315 Log: JENKINS-51598 - Expose PermissionGroup IDs to API
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/java/hudson/security/PermissionGroup.java
          http://jenkins-ci.org/commit/jenkins/8d438b7bb17be43f98e7fa2f49c9b7800f2d1143
          Log:
          Merge pull request #3460 from oleg-nenashev/feature/JENKINS-51598-PerissionAPI

          JENKINS-51598 - Expose PermissionGroup IDs to API

          Compare: https://github.com/jenkinsci/jenkins/compare/a846c366fe15...8d438b7bb17b
          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/security/PermissionGroup.java http://jenkins-ci.org/commit/jenkins/8d438b7bb17be43f98e7fa2f49c9b7800f2d1143 Log: Merge pull request #3460 from oleg-nenashev/feature/ JENKINS-51598 -PerissionAPI JENKINS-51598 - Expose PermissionGroup IDs to API Compare: https://github.com/jenkinsci/jenkins/compare/a846c366fe15...8d438b7bb17b * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fixed in Jenkins 2.127

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fixed in Jenkins 2.127

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: