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

Gitea plugin fails when checking for PRs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitea-plugin
    • None

      Hi.

      I have set up a multibranch pipeline to test the code from a gitea repository.

      I want to have some branches from the repository plus any PR to be tested.

      When Jenkins scans the pipeline, has no problem to identify and launch the testing for the branches. But when it reaches the PR's it fails in the first one.

      Here you have the scan log:

      Started
      [Mon Oct 31 09:47:01 CET 2022] Starting branch indexing...
      Looking up repository -------/-------
      Looking up repository -------/-------
      
        Checking branches...
      
          Checking branch SS-1616
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: SS-1616
      
          Checking branch SS-1734
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: SS-1734
      
          Checking branch development
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: development
      
          Checking branch hot-fixes
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: hot-fixes
      
          Checking branch main
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: main
      
          Checking branch prj-UL
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: prj-UL
      
          Checking branch release
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: release
      
          Checking branch testing
            ‘Jenkinsfile’ found
          Met criteria
      Scheduled build for branch: testing
      
        8 branches were processed
      
        Checking pull requests...
      
        Checking pull request #1
      ERROR: [Mon Oct 31 09:47:14 CET 2022] Could not fetch branches from source d2deb948-ba57-41fa-bb88-7470dcf79f64
      [Mon Oct 31 09:47:14 CET 2022] Finished branch indexing. Indexing took 12 sec
      FATAL: Failed to recompute children of ********
      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:176)
      	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
            jvilarroig Javier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: