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

Git Submodules not cloned if not present on default branch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.14.5
    • 5.8.1
    • Repository (Git)
    • None

    Description

      1. Create a Bamboo build that builds for both develop and feature/XYZ
      2. Enable git submodule support for the repo in Bamboo
      3. Create a feature/XYZ branch in your repo and add a new submodule
      4. Bamboo builds feature/XYZ but fails because the Git submodule folder is empty (it's contents are not cloned)

      There are couple of ways this can be solved:

      A. If submodules are enabled for the repo, Bamboo should make sure to initialise & update all submodules after switching branches
      B. Bamboo can clone down the branch directly with both --branch and --recursive flags, this will make sure the submodules for that branch are initialized and cloned

      Attachments

        Activity

          People

            Unassigned Unassigned
            3bfebdacd031 Joseph Earl
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: