Skip to main content

Using Git Submodule in Gitlab CI

✍ Last Updated : December 19, 2022

🚪 Prequisite Knowledge (Optional)

Describe Initial Knowledge that reader need to know before reading this article

  1. [Git Submodule](Git Submodule 44959cb161e24131ab89e18e5f89eb12.md)
  2. Gitlab CI Variables

❓ Key Question / Problem / Issue

Describe what question / Problem / Issue this knowledge should answer

Gitlab CI doesn’t synchronize Registered Git Submodule of a project resulting in jobs failure

✅ Expected Output/Definition of Done

Define what information you really need and the definition of done

Gitlab CI Synchronize Git Submodule before executing job process

🎁 Resulting Solution

Write writing results below

Using Git submodules with GitLab CI/CD | GitLab

  1. for submodule located in same gitlab server change it’s path to relative path
  2. set GIT_SUBMODULE_STRATEGY variable to either normal or recursive