Teamcity - 未找到构建配置的修订

时间:2013-06-12 13:52:26

标签: build teamcity snapshot

我有两个构建配置:A和B.A从Git存储库获取源代码,构建源代码并运行单元和集成测试,B应该将应用程序部署到测试环境。 B在A上有一个“Finish Build Trigger”和一个“Snapshot Dependency”.A成功运行,我期待B在A之后启动,但是我收到以下错误:

  

未找到构建配置的修订:A {id = bt7},B   {id = bt9}隐藏堆栈跟踪   jetbrains.buildServer.buildTriggers.BuildTriggerException:Revisions   找不到构建配置:A {id = bt7},B {id = bt9} at   jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.callTrigger(BuildTriggersChecker.java:37)   在   jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.access $ 800(BuildTriggersChecker.java:109)   在   jetbrains.buildServer.serverSide.impl.BuildTriggersChecker $ BuildTriggersGroup.processTriggers(BuildTriggersChecker.java:27)   在   jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.triggerBuilds(BuildTriggersChecker.java:94)   在   jetbrains.buildServer.serverSide.impl.BuildServerRunner $ 4.doSomething(BuildServerRunner.java:1)   在   jetbrains.buildServer.serverSide.impl.BuildServerRunner $ BuildServerWorker.runAction(BuildServerRunner.java:12)   在   jetbrains.buildServer.serverSide.impl.BuildServerRunner $ BuildServerWorker.run(BuildServerRunner.java:32)   在java.lang.Thread.run(未知来源)引起:   jetbrains.buildServer.vcs.impl.RevisionsNotFoundException:Revisions   找不到构建配置:A {id = bt7},B {id = bt9} at   jetbrains.buildServer.vcs.impl.HistoryChangesCollector $ HistoryChangesResult.checkRevisionsAreSet(HistoryChangesCollector.java:30)   在   jetbrains.buildServer.vcs.impl.HistoryChangesCollector $ HistoryChangesResult.computeRevisions(HistoryChangesCollector.java:27)   在   jetbrains.buildServer.vcs.impl.HistoryChangesCollector $ HistoryChangesResult.access 100 $(HistoryChangesCollector.java:74)   在   jetbrains.buildServer.vcs.impl.HistoryChangesCollector $ 1.get(HistoryChangesCollector.java:11)   在   jetbrains.buildServer.vcs.impl.HistoryChangesCollector $ 1.get(HistoryChangesCollector.java:3)   在   jetbrains.buildServer.serverSide.impl.CancelableTaskHolder.waitForTaskToComplete(CancelableTaskHolder.java:9)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:138)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.access $ 000(TopBuildDependencyGraphImpl.java:88)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl $ 3.run(TopBuildDependencyGraphImpl.java)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl $ 3.run(TopBuildDependencyGraphImpl.java:1)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl $ 4.run(TopBuildDependencyGraphImpl.java)   在   jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:24)   在   jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:19)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.runAsSystem(TopBuildDependencyGraphImpl.java:122)   在   jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:8)   在   jetbrains.buildServer.serverSide.impl.BuildCustomizerImpl.createPromotion(BuildCustomizerImpl.java:53)   在   jetbrains.buildServer.serverSide.impl.BuildCustomizerImpl.createPromotion(BuildCustomizerImpl.java:25)   在   jetbrains.buildServer.buildTriggers.dependency.FinishBuildTriggerService $ 3.triggerBuild(FinishBuildTriggerService.java:48)   在   jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.callTrigger(BuildTriggersChecker.java:50)

1 个答案:

答案 0 :(得分:0)

如何配置此B?这个B应该如何拥有这个神器?它是从A传递还是B自己构建它然后部署?

它似乎没有附加任何VCS,是吗?你只能在连接了相同VCS的两个构建配置之间拥有快照依赖关系。 TC将负责确保两个版本都针对相同的版本运行。但是如果其中一个版本没有连接VCS,我可能会失败。