2013-02-06 42 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