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

Repository polling fails when pull requests are disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitea-plugin
    • None
    • gitea 1.6 RC2
      jenkins 2.138.2
      jenkins gitea plugin 1.0.8
    • 1.2.1

      The gitea REST API returns 404 instead of 200 when pull request or issues are disabled on a repository.

      The jenkins plugin does not handle this case and fails when polling the repository (the repository is not listed at all).

      I am not 100% sure the fault really is on the plugin side (gitea could return 200 with an empty list of pull requests), but the plugin could be more defensive in this case so that standard branches work even if the pull requests API call failed for whatever reason.

            stephenc Stephen Connolly
            nioculaj Julien Nicoulaud
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: