Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18154

Old Base URL sent to Bitbucket Cloud when updating build status from Bamboo

    XMLWordPrintable

Details

    Description

      Summary

      When using Bitbucket Cloud as a repository in Bamboo, Bamboo sends a POST request to Bitbucket upon completion of a build to update the build status of those commits. This POST request contains the URL of the Bamboo instance that completed the build so that it can link back to the build result.

      Upon changing the base URL of the instance and performing a new build, this request still contains the previous base URL until Bamboo is restarted.

      Steps to Reproduce

      1. Create a plan that uses a Bitbucket Cloud repository
      2. Build the plan
      3. Check the commits in the Bitbucket Cloud repository and the URL behind the build status link
      4. (Optional) Make a new commit to the repository for comparability of the URL (this actually updates if you build the same commit, so not necessary)
      5. Now change the base URL in Bamboo Administration > Overview > General Configuration
      6. Build the plan again
      7. Check the commits in Bitbucket Cloud and the URL behind the build status link -> still the old base URL

      Expected Results

      Bitbucket Cloud links to the new base URL.

      Actual Results

      Bitbucket Cloud still links to the old base URL.

      Notes

      • It's important to note, even after Bamboo is sending the correct URL to Bitbucket the build status for past commits / builds will not point to the new instance – you will need to build the plan again for the URL to be updated.
      • You can set TRACE / ALL logging on the following classes to inspect request contents:
        com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl
        com.atlassian.bamboo.plugins.bitbucket.events.BitbucketBuildStatusUpdater
        

      Workaround

      1. Restart Bamboo after changing the base URL so that the new URL is used instead.

      Attachments

        Activity

          People

            moles Marcin Oles
            jowen@atlassian.com Jeremy Owen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: