我试图使用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。 –