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

When using Shared Libraries that use Bitbucket Server for the SCM, plugin fails to correctly post build status info

    • 3.4.1

      After a recent upgrade of Jenkins core and the BBS plugin from 2.1.3 to 3.2.2, we noticed that build status information was no longer being correctly shown on our internal Bitbucket Server instance - in the "/builds" section on on Bitbucket Server instance, the status shows "In Progress" indefinitely.

      The problem goes away if we manually go to /configure section of Jenkins, scroll down to the Global Pipeline Libraries area, and change the Retrieval Method/SCM from "Bitbucket Server" to "Git".

      (Context: most of our builds typically use Multibranch Pipelines)

      It appears as though the problem may be caused by build jobs that perform multiple checkouts as part of their build and is a regression in behavior from the older 2.1.3 version.

      To reiterate:

      • This problem doesn't occur when shared libraries aren't used on the master/controller with the 3.2.2 version, or if the "Git" retrieval method is used instead.
      • If we revert back to the 2.1.3 version, the problem goes away entirely, and shared libraries can be used with "Bitbucket Server" as the SCM retrieval method.

      Looking through the release notes from 2.1.3 to 3.2.2, I don't see anything that appears to explain this new change in behavior.

       

          [JENKINS-69268] When using Shared Libraries that use Bitbucket Server for the SCM, plugin fails to correctly post build status info

          Jiri added a comment -

          Dear garensel , we faced exaclty the same issue. Many thanks for posting it. Looking forward for a solution. 

          Jiri added a comment - Dear garensel , we faced exaclty the same issue. Many thanks for posting it. Looking forward for a solution. 

          Garen Parham added a comment - - edited

          Was the fix for this included in the 3.3.4 release?  I don't see any Jira issues listed in the Changelog, although it looks like the PR for itwas merged to main.

           

          Garen Parham added a comment - - edited Was the fix for this included in the 3.3.4 release?  I don't see any Jira issues listed in the Changelog , although it looks like the PR for it was merged to main.  

          David added a comment -

          Hi garensel 

          This fix will be included in the next release. I will update the release notes accordingly. 

          David added a comment - Hi garensel   This fix will be included in the next release. I will update the release notes accordingly. 

            djansons David
            garensel Garen Parham
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: