TeamCity存储库X在路径“X”的提交“X”中有一个子模块,但在.gitmodules配置中没有该路径的条目

时间:2014-04-28 20:41:59

标签: git teamcity git-submodules

我正在尝试在MacBuild代理上构建一个Git项目。

这个项目曾经一直在运作。我更改了多个子模块URL(指向新的Git服务器),这些问题开始出现。但是,旧的URL仍然可用,并且代理新的Git服务器地址,所以我不认为这是问题。我已经验证了父/超级项目引用了Git服务器上存在的提交(旧网址和新网址)。

我可以在任何计算机上本地检查SourceTree / git,没有任何问题。那么,为什么这会在构建服务器(TeamCity)上出现问题。

Build 'MedXStream :: Internal' #1 
Started 'Mon Apr 28 16:27:20 EDT 2014' on 'Pauls-MacBook-Pro' by 'pknopf'
Finished 'Mon Apr 28 16:28:21 EDT 2014' with status 'FAILURE Failed to start build'
TeamCity URL http://192.168.5.180/viewLog.html?buildId=1&buildTypeId=MedXStream_Internal 
TeamCity server version is 8.1.2 (build 29993)

[16:27:20]E: bt1 (1m:01s)
[16:27:20] : TeamCity server version is 8.1.2 (build 29993)
[16:27:20] : Checking for changes (running for 1m:01s)
[16:27:20] : Will collect changes in 1 VCS roots
[16:27:20] : Waiting for completion of current operations for the VCS roots
[16:27:20] : Loading current repository state for VCS root 'MedXStream'
[16:27:20] : Detecting changes in VCS root 'MedXStream' (used in Internal)
[16:27:20] : Agent time zone: America/New_York
[16:27:22] : Agent is running under JRE: 1.6.0_65-b14-462-11M4609
[16:27:22] : Publishing internal artifacts
[16:27:22] :     [Publishing internal artifacts] Sending using WebPublisher
[16:27:22] :     [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[16:27:22] : Clearing temporary directory: /Applications/buildAgent/temp/buildTmp
[16:27:22] : Checkout directory: /Applications/buildAgent/work/646019915a7c9b49
[16:27:22]W: Updating sources: server side checkout (32s)
[16:27:22] :     [Updating sources] Using vcs information from server. Reason: no revision information for buildtype Internal and checkout directory /Applications/buildAgent/work/646019915a7c9b49 on agent
[16:27:21] :     [Updating sources] Will perform clean checkout
[16:27:21] :     [Updating sources] Clean checkout reasons
[16:27:21] :         [Clean checkout reasons] Agent doesn't have any version of the project sources
[16:27:21] :         [Clean checkout reasons] Checkout directory is empty or doesn't exist
[16:27:21] :     [Updating sources] Building and caching clean patch for VCS root: MedXStream
[16:27:53]W:     [Updating sources] Failed to build patch for build #1 {build id=1}, VCS root: "MedXStream" {instance id=3, parent internal id=1, parent id=MedXStream, description: "http://stash.medxchange.com/scm/ios/software.git#refs/heads/master"}, due to error: Patch building failed: jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleEntryException: The repository 'http://stash.medxchange.com/scm/mdx/medxchange.library.git' has a submodule in the commit '985645766910a85451368de894d7a02507e63bed' at a path 'SubModules/MedXChange.MobileDevice', but has no entry for this path in .gitmodules configuration
[16:27:54] :     [Updating sources] Repository sources transferred
[16:27:54]W: Will repeat attempt when server will be available, number of attempts left: 2
[16:28:04]W: Updating sources: server side checkout (4s)
[16:28:03] :     [Updating sources] Will perform clean checkout
[16:28:03] :     [Updating sources] Clean checkout reasons
[16:28:03] :         [Clean checkout reasons] Agent doesn't have any version of the project sources
[16:28:03] :         [Clean checkout reasons] Checkout directory is empty or doesn't exist
[16:28:03] :     [Updating sources] Building and caching clean patch for VCS root: MedXStream
[16:28:07]W:     [Updating sources] Failed to build patch for build #1 {build id=1}, VCS root: "MedXStream" {instance id=3, parent internal id=1, parent id=MedXStream, description: "http://stash.medxchange.com/scm/ios/software.git#refs/heads/master"}, due to error: Patch building failed: jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleEntryException: The repository 'http://stash.medxchange.com/scm/mdx/medxchange.library.git' has a submodule in the commit '985645766910a85451368de894d7a02507e63bed' at a path 'SubModules/MedXChange.MobileDevice', but has no entry for this path in .gitmodules configuration
[16:28:09] :     [Updating sources] Repository sources transferred
[16:28:09]W: Will repeat attempt when server will be available, number of attempts left: 1
[16:28:19]W: Updating sources: server side checkout (4s)
[16:28:17] :     [Updating sources] Will perform clean checkout
[16:28:17] :     [Updating sources] Clean checkout reasons
[16:28:17] :         [Clean checkout reasons] Agent doesn't have any version of the project sources
[16:28:17] :         [Clean checkout reasons] Checkout directory is empty or doesn't exist
[16:28:17] :     [Updating sources] Building and caching clean patch for VCS root: MedXStream
[16:28:21]W:     [Updating sources] Failed to build patch for build #1 {build id=1}, VCS root: "MedXStream" {instance id=3, parent internal id=1, parent id=MedXStream, description: "http://stash.medxchange.com/scm/ios/software.git#refs/heads/master"}, due to error: Patch building failed: jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleEntryException: The repository 'http://stash.medxchange.com/scm/mdx/medxchange.library.git' has a submodule in the commit '985645766910a85451368de894d7a02507e63bed' at a path 'SubModules/MedXChange.MobileDevice', but has no entry for this path in .gitmodules configuration
[16:28:23] :     [Updating sources] Repository sources transferred
[16:28:23]E: Patch is broken, can be found in file: /Applications/buildAgent/temp/globalTmp/temp6909424303578745215patch_1
[16:28:23]E: Failed to build patch for build #1 {build id=1}, VCS root: "MedXStream" {instance id=3, parent internal id=1, parent id=MedXStream, description: "http://stash.medxchange.com/scm/ios/software.git#refs/heads/master"}, due to error: Patch building failed: jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleEntryException: The repository 'http://stash.medxchange.com/scm/mdx/medxchange.library.git' has a submodule in the commit '985645766910a85451368de894d7a02507e63bed' at a path 'SubModules/MedXChange.MobileDevice', but has no entry for this path in .gitmodules configuration
[16:28:23]W: jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:118)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:108)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:69)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:71)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:60)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:91)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:59)
    at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:112)
    at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:70)
    at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
    at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
    at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
    at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
    at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
    at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
    at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:265)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:231)
    at java.lang.Thread.run(Thread.java:695)
Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #1 {build id=1}, VCS root: "MedXStream" {instance id=3, parent internal id=1, parent id=MedXStream, description: "http://stash.medxchange.com/scm/ios/software.git#refs/heads/master"}, due to error: Patch building failed: jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleEntryException: The repository 'http://stash.medxchange.com/scm/mdx/medxchange.library.git' has a submodule in the commit '985645766910a85451368de894d7a02507e63bed' at a path 'SubModules/MedXChange.MobileDevice', but has no entry for this path in .gitmodules configuration
    at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.fail(AbstractPatcher.java:93)
    at jetbrains.buildServer.vcs.patches.LowLevelPatcher.readPatchStream(LowLevelPatcher.java:165)
    at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:88)
    at jetbrains.buildServer.vcs.patches.AbstractPatcher.applyPatch(AbstractPatcher.java:42)
    at jetbrains.buildServer.agent.impl.patch.PatchApplierImpl.applyPatch(PatchApplierImpl.java:18)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatchInFileIsCompleted(PatchDownloaderImpl.java:88)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:98)
    ... 18 more

[16:28:23] : ##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='61048.0']
[16:28:23] : Publishing internal artifacts
[16:28:23] :     [Publishing internal artifacts] Sending using WebPublisher
[16:28:23] :     [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[16:28:23] : Build failed to start. Artifacts will not be published for this build
[16:28:23] : ##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='48.0']
[16:28:21] : Build finished

为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

检查确保main和'sub'repo都使用相同的身份验证形式。即https vs ssh