'Why submodules are not updated using GIT_SUBMODULE_STRATEGY:recursive
I created a .gitmodules file in the root of MASTER's project:
[submodule "SLAVE"]
path = SLAVE
url = ../../my-group/SLAVE.git
Added to MASTER's .gitlab-ci.yml:
variables:
GIT_SUBMODULE_STRATEGY: recursive
Triggered MASTER's CI pipeline.
As a result, no changes made in SLAVE project were applied while running MASTER's CI
Solution 1:[1]
You need to add GIT_SUBMODULE_UPDATE_FLAGS to the .gitlab-ci.yml.
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_UPDATE_FLAGS: --remote --merge
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ouflak |
