Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.8.1
-
None
-
Severity 3 - Minor
-
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