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

Bamboo failed shallow clone recovery mode

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Summary

      For Git workflows where developers change the history of branches (by using rebase, squash, etc.) on their branch before force pushing changes to Bitbucket, the source code checkout task can reach a situation where it's unable to successfully checkout the revision that triggered the build if shallow clones are enabled because it is attempting to checkout a commit that was removed from the branch/not in the history pulled down by the fetch.

      Suggestion

      When checking out a revision post a shallow clone fails due to the commit not being present in the shallow history, Bamboo enters a "recovery mode" where it fetches the history for that branch in an empty repo. For some use cases, it would be best if Bamboo would, for the recovery logic, either do a full clone of the branch to the working directory; or add to the fetch command to pull the history for the ${bamboo_planRepository_1_revision} commit.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7bef8aece2a3 Eduardo Collaziol
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: