TeamCity - keeping Git submodule up to date?

本小妞迷上赌 提交于 2019-12-22 09:10:20

问题


I have a Git repository that includes a submodule.

This repository has various build configurations in TeamCity that are dependent on code on the submodule. Is there a way with TeamCity to detect that the submodule repository has been updated and then go ahead and update the submodule, update the parent repository to point to the latest submodule and build the code?

I want to automate finding out if a commit on the submodule will break the parent repository.


回答1:


You could add a step which will check, from the parent repo, if a submodule has any modified file.

See "Git tells me my subproject is dirty, what does this mean?" as an example.

Make sure that submodule isn't configure ion your parent repo to ignore internal changes: "Git: can I suppress listing of 'modified content'/dirty submodule entries in status, diff, etc?".



来源:https://stackoverflow.com/questions/12902469/teamcity-keeping-git-submodule-up-to-date

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!