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

Overall/Administer permission seems to be required for linting

    XMLWordPrintable

Details

    Description

      It seems that the Overall/Administer permission is required to perform:

      ssh -p ${JENKINS_PORT} ${USERNAME}@${JENKINS_HOST} declarative-linter < pipeline
      

      Without this permission the following output is generated:

      ERROR:${USERNAME} is missing the N/A/GenericRead permission
      

      It seems there is no way to allow non-administrators to perform this action.

      Attachments

        Issue Links

          Activity

            wouterh Wouter Hünd created issue -

            I wonder if this could be due to the use of hudson.security.Permission.READ. Shouldn't this be hudson.model.Hudson.Read instead ?

            allan_burdajewicz Allan BURDAJEWICZ added a comment - I wonder if this could be due to the use of hudson.security.Permission.READ . Shouldn't this be hudson.model.Hudson.Read instead ?
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/165
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Remote Link This issue links to "PR #165 (Web Link)" [ 17201 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/DeclarativeLinterCommand.java
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/DeclarativeLinterCommandTest.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/70c91e138da4f2a65dd9f759ac188a77459b5ebf
            Log:
            [FIXED JENKINS-43071] Use Jenkins.READ perms for linter

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/DeclarativeLinterCommand.java pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/DeclarativeLinterCommandTest.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/70c91e138da4f2a65dd9f759ac188a77459b5ebf Log: [FIXED JENKINS-43071] Use Jenkins.READ perms for linter
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal OSS-2366 (Web Link)" [ 18335 ]
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              abayer Andrew Bayer
              wouterh Wouter Hünd
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: