Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-20775

Multi-branch pipeline job cannot discover user permissions on github

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: Jenkins
    • Labels:
      None

      Description

      We are in the process of migrating Kafka jobs to the new CloudBee's Jenkins. When scanning the repository for PRs (as part of a multi-branch pipeline job), we are seeing lots of errors like:


       Error while processing pull request 9225

        Reason: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/apache/kafka/collaborators/huxihx/permission {"message":"Must have push access to view collaborator permission.","documentation_url":"https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user"}



      Here is the full log https://ci-builds.apache.org/job/Kafka/job/kafka-pr/indexing/consoleFull.

      My understanding is that Jenkins needs this github permission in order to determine if the PR author has repository write access. This is needed to see if they are authorized to modify the Jenkinsfile as part of a PR.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davidarthur David Arthur
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: