2013-02-06 43 views
1

我试图使用TeamCity 6.5.6构建一个git的回购,但有一个子模块但“无法开始构建”。无法使用TeamCity和一个git子模块构建

.gitmodules文件:

[submodule "src/shared-contracts"] 
path = src/shared-contracts 
url = [email protected]: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: [email protected]:myrepo#mapi-qa {instance id=1152, parent id=280}, due to error: Patch building failed: org.eclipse.jgit.errors.CorruptObjectException: Repository '[email protected]: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正确。

任何想法?

+0

那么,你检查'.gitmodules'吗? –

+0

本地是的,如上所述,假设将是相同的服务器上,将确认... –

+0

我会尝试与较新版本的TeamCity。 –

回答

5

我更新到TeamCity 7.1.3并且问题继续发生。

我删除辅助模块中的答案如下How do I remove a submodule?

我再重新添加它,但这次URL设置为

url = [email protected]:shared-contracts.git

,而不是

url = [email protected]:shared-contracts和问题是解决。

+0

我有同样的问题,我删除了子模块,并添加了一个https地址,而不是SSH,它的工作。 – David