1

我正在尝试使用带有一个子模块的 repo 进行构建,TeamCity 6.5.6git“无法开始构建”。

.gitmodules文件:

[submodule "src/shared-contracts"]
path = src/shared-contracts
url = gitolite@myserver:shared-contracts

堆栈跟踪:

Failed to start build: Server was not able to build correct patch, most likely due to VCS errors, will try again. jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors, will try again.

Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #s5 {build id=19947}, VCS root: gitolite@myserver:myrepo#mapi-qa {instance id=1152, parent id=280}, due to error: Patch building failed: org.eclipse.jgit.errors.CorruptObjectException: Repository 'gitolite@myserver:myrepo' has submodule in commit 'c8f8416d86e3ed274302ff2f316792a37f041322' at path 'src/shared-contracts', but has no entry for this path in .gitmodules configuration.

我在本地做了一个全新的克隆,从 TC 配置中检查了分支,git submodule update --init并将子模块正确地检查到了 src/shared-contracts。

有任何想法吗?

4

1 回答 1

5

我更新到TeamCity7.1.3,问题继续出现。

我在回答如何删除子模块后删除了子模块?

然后我重新添加了它,但这次将 URL 设置为

url = gitolite@myserver:shared-contracts.git

代替

url = gitolite@myserver:shared-contracts问题就解决了。

于 2013-03-26T23:48:45.860 回答