Skip to main content

Using Git Submodule in Gitlab CI

โœ Last Updated : December 19, 2022

๐Ÿšช Prequisite Knowledge (Optional)

UploadDescribe InInitial ProgressKnowledge 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