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

Jenkins scan of Gitea fails on PRs from forks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitea-plugin
    • None
    • Gitea 1.17.2
      Jenkins 2.361.1
      Gitea Plugin 1.4.3

      Jenkins scans regularly the multibranch pipelines.

      This scan fails if within a repository exists a pull request from a personal fork:

        Checking pull request #5042
            ‘Jenkinsfile’ found
          Met criteria
      No changes detected: PR-5042 (still at f28e872c1c0e9c2afc1dfd902ccd4beb046b3b84+683a03dc45583ec40ab8d08d58d0cd5c29addddd)
      
        Checking pull request #5041
      ERROR: [Tue Sep 27 23:03:29 CEST 2022] Could not fetch branches from source org.jenkinsci.plugin.gitea.GiteaSCMNavigator::https://gitea.boom.org::bangorg::bimrepo
      [Tue Sep 27 23:03:29 CEST 2022] Finished branch indexing. Indexing took 29 sec
      FATAL: Failed to recompute children of MultiBranchPipelineName » bimrepo
      org.jenkinsci.plugin.gitea.client.api.GiteaHttpStatusException: HTTP 404/Not Found
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.getObject(DefaultGiteaConnection.java:867)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.fetchRepository(DefaultGiteaConnection.java:200)
      	at org.jenkinsci.plugin.gitea.GiteaSCMFileSystem$BuilderImpl.build(GiteaSCMFileSystem.java:170)
      	at org.jenkinsci.plugin.gitea.GiteaSCMSource.createProbe(GiteaSCMSource.java:620)
      	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:339)
      	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:249)
      	at org.jenkinsci.plugin.gitea.GiteaSCMSource.retrieve(GiteaSCMSource.java:386)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
      	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:641)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1032)
      	at hudson.model.ResourceController.execute(ResourceController.java:107)
      	at hudson.model.Executor.run(Executor.java:449)
      Finished: FAILURE
      

            Unassigned Unassigned
            mrlov m l
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: