我試圖使用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正確。
任何想法?
那麼,你檢查'.gitmodules'嗎? –
本地是的,如上所述,假設將是相同的服務器上,將確認... –
我會嘗試與較新版本的TeamCity。 –