Details
-
Bug
-
Resolution: Done
-
Low
-
5.14.4.1
-
Severity 3 - Minor
-
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
- Create a plan that uses a Bitbucket Cloud repository
- Build the plan
- Check the commits in the Bitbucket Cloud repository and the URL behind the build status link
- (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)
- Now change the base URL in Bamboo Administration > Overview > General Configuration
- Build the plan again
- 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
- Restart Bamboo after changing the base URL so that the new URL is used instead.