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

Incorrect permissions with non Multibranch based Pipeline jobs

    XMLWordPrintable

Details

    Description

      We're using the Github OAuth plugin since a couple of days with the use repository permission flag activated.

      This means Jenkins will look the user permissions through the Github permission on the repository of the looked item.

      This works fine for all our regular jobs, but gives only READ/BUILD permissions on pipeline jobs.

      I think the problem is that we don't use the Multibranch Pipeline plugins and thus fGithubRequireOrganizationMembershipACL.getRepositoryName fails to return anything meaningful.

      Using the jenkins console, I could find that getRepositoryName throws a NullPointerException on those pipeline jobs.

      I believe that the code should test for the presence of the BranchProperty before dereferencing it, and if this property doesn't exist, it should simply call getTypicalSCM() on the project.

       

       

      Attachments

        Activity

          masterzen Brice Figureau created issue -

          People

            sag47 Sam Gleske
            masterzen Brice Figureau
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: