I am running a Teamcity(version 9.0.5 Build 32523) build which checks out the git project and compiles the project. Initially there was a problem in checking out submodule project as "Authorization Failed" message occured. The issue was resolved by changing submodule git url in .gitmodules file from "url=https://mylocal.git.com/submoduleproject.git" to "url=git@mylocal.git.com/submoduleproject.git".
With this fix, the team city is able to build but i am not able to checkout submodule project locally. Is there any universal solution for this problem?
Note: I wont be able to upgrade the teamcity version as lot of projects are dependent on it now.