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

github multibranch builds fail to build with latest branch api update

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • branch-api-plugin
    • None
    • Jenkins 2.138.3 on Ubuntu
      git plugin 3.9.1 and branch api plugin 2.1.1 is broken.
      git plugin 3.9.0 and branch api plugin 2.0.21 is ok.
    • branch-api 2.5.4

      The latest updates broke github multibranch builds.

      The branches are being discovered, but all automaticdiscovery of all new changes on all branches results in the following typical log entries:

      Checking pull-requests...
       
      Checking pull request #3
      ‘Jenkinsfile’ found
      Met criteria
      Changes detected: PR-3 (null → 24d2f4cb5debd9b3f6f8c86383eb077be0dee0c4+517f061b1a7db844659ca98d1b61a7dcd0b6fb82)
      No automatic builds for PR-3

      These builds should have triggered.  Backing out to the last stable set of plugins fixes the problem.

          [JENKINS-54864] github multibranch builds fail to build with latest branch api update

          John Mellor created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Component/s New: branch-api-plugin [ 18621 ]

          Jason Crow added a comment - - edited

          Having the same problem PR's are detected but never built.  I've reverted and PR's are building again. However there are error messages showing:

           
          Dependency errors:

          Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to restore the functionality provided by these plugins.
          Basic Branch Build Strategies Plugin version 1.1.1Branch API Plugin v2.0.21 is older than required. To fix, install v2.1.0 or later.
          Go to plugin managerConfigure which of these warnings are shown
           
           Warnings have been published for the following currently installed components.Git plugin 3.9.0 Server-side request forgery

          Jason Crow added a comment - - edited Having the same problem PR's are detected but never built.  I've reverted and PR's are building again. However there are error messages showing:   Dependency errors: Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to restore the functionality provided by these plugins. Basic Branch Build Strategies Plugin version 1.1.1Branch API Plugin v2.0.21 is older than required. To fix, install v2.1.0 or later. Go to plugin managerConfigure which of these warnings are shown    Warnings have been published for the following currently installed components. Git plugin 3.9.0 Server-side request forgery
          Mark Waite made changes -
          Summary Original: github multibranch builds fail to build with latest git plugin update New: github multibranch builds fail to build with latest branch api and git plugin update

          Mark Waite added a comment -

          It should be enough to revert branch API plugin 2.1.1.

          The changes between git plugin 3.9.0 and 3.9.1 added a requirement that POST must be used when checking the repository browser (SECURITY-810) and some minor automated testing changes.

          Mark Waite added a comment - It should be enough to revert branch API plugin 2.1.1. The changes between git plugin 3.9.0 and 3.9.1 added a requirement that POST must be used when checking the repository browser (SECURITY-810) and some minor automated testing changes.

          Jason Crow added a comment -

          Cool, works with just the API plugin reverted.

          Jason Crow added a comment - Cool, works with just the API plugin reverted.
          Mark Waite made changes -
          Component/s Original: git-plugin [ 15543 ]
          Mark Waite made changes -
          Summary Original: github multibranch builds fail to build with latest branch api and git plugin update New: github multibranch builds fail to build with latest branch api update

          Jason Crow added a comment -

          Does anyone know what's going on with branch api plugin 2.1.1? We have continuous deployment pipeline that's dependent on PR builds to pass github checks and the PR's never build with this plugin version.

          Jason Crow added a comment - Does anyone know what's going on with branch api plugin 2.1.1? We have continuous deployment pipeline that's dependent on PR builds to pass github checks and the PR's never build with this plugin version.

            dnusbaum Devin Nusbaum
            alt_jmellor John Mellor
            Votes:
            8 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: