-
Bug
-
Resolution: Fixed
-
Minor
-
None
Now that there is the SCMHeadMigration API we can attempt to fix the issue during item loading by querying bitbucket to get the list of targets for each PR (which was not possible from readResolve() as the head does not contain details of the target repository so we cannot look up the target branch in the target repository! (However once we have the SCMSource we can ask the target repository for the target branch of the PR with id = XYZ and all is right in the world again)
NOTE If the connection to BitBucket fails while Jenkins is loading all the jobs, a rebuild will be triggered on the next index as failing to load the job (the only alternative) would not only trigger a rebuild anyway, but would also overwrite old builds... hence it is the lesser of two evils.
- links to