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

NullPointerException from fetchCollaborators in PRs from fork

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • gitea-plugin
    • None

      After jenkins update (version in docker 2.277.1-jdk11), we create pull request in gitea, start build, but this build fail with error:

      [Gitea] Notifying pull request build status: FAILURE There was a failure building this commit 
      [Gitea] Notified java.lang.NullPointerException 
      at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.fetchCollaborators(DefaultGiteaConnection.java:395) 
      at org.jenkinsci.plugin.gitea.GiteaSCMSource.getTrustedRevision(GiteaSCMSource.java:568) 
      at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:102) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309) 
      at hudson.model.ResourceController.execute(ResourceController.java:97) 
      at hudson.model.Executor.run(Executor.java:429) 
      Finished: FAILURE
      

          [JENKINS-65194] NullPointerException from fetchCollaborators in PRs from fork

          Steven added a comment -

          Hi melmus, some questions about your environment:

          • Which Gitea version do you use?
          • Which plugin version do you use?
          • Are you using an account that is non-admin for the repository?
          • Have you configured "Discover pull requests from forks" and if so, how is this configured?
          • Are there collaborators configured inside Gitea for this repository?
          • Are you running builds as SYSTEM or dedicated user?

          Steven added a comment - Hi melmus , some questions about your environment: Which Gitea version do you use? Which plugin version do you use? Are you using an account that is non-admin for the repository? Have you configured "Discover pull requests from forks" and if so, how is this configured? Are there collaborators configured inside Gitea for this repository? Are you running builds as SYSTEM or dedicated user?

            stephenconnolly Stephen Connolly
            melmus Vasiliy
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: