I created a repository in the same group as my main project. We want to handle our Gherkin feature files there to make it easier for our Business Analyst to work with these files.
I added a submodule within the main repo, which leads to the following .gitmodules file:
[submodule "features"] path = tests/softwareTests/Features url = ../gherkin-feature-files.git
The pull works fine locally.
The .gitlab-ci.yml has the flag
GIT_SUBMODULE_STRATEGY: recursive set additionally.
It worked one or two times after removing all characters after
.git in the .gitmodules file but the next run fails again. The error message is:
remote: The project you were looking for could not be found or you don't have permission to view it. fatal: repository 'https://xyz.com/xyz/gherkin-feature-files.git/' not found
xyz.com/xyz/ stands for our locally hosted GitLab instance (15.9.3-ee) with 3 layers of groups in addition.
The link in the error message works if you remove the last character. Because the link includes the '.
I tried multiple other notations of the .gitmodules file, which didn’t work neither. But I think the current notation is correct.
Do someone have an idea what’s wrong or what I can try additionally?