continuous-integration - 设置 TeamCity 以与 ClearCase 配合使用

标签 continuous-integration teamcity clearcase

我正在尝试设置 TeamCity 以与 ClearCase 配合使用以进行持续集成,但遇到了一些问题。 TeamCity 提示它无法为该版本构建补丁。我一直在互联网上搜索有关 ClearCase 和 TeamCity 的信息,有关该主题的信息数量出人意料地少。有没有人成功地让 TeamCity 与 ClearCase 配合使用?

这是我的构建日志:

[18:09:11]: Updating sources (2s)
[18:09:13]: [Updating sources] Failed to build patch for build #1.0.23-November-2009.18:09:09, build id: 10, VCS root: ClearCase, due to error: Cannot get version in view 'D:\CCdata\my_vob\my_project' for the directory D:\CCdata\my_vob\my_project
[18:09:13]: Will repeat attempt when server will be available, number of attempts left: 2
[18:09:23]: Updating sources (1s)
[18:09:25]: [Updating sources] Failed to build patch for build #1.0.23-November-2009.18:09:09, build id: 10, VCS root: ClearCase, due to error: Cannot get version in view 'D:\CCdata\my_vob\my_project' for the directory D:\CCdata\my_vob\my_project
[18:09:25]: Will repeat attempt when server will be available, number of attempts left: 1
[18:09:35]: Updating sources (2s)
[18:09:37]: [Updating sources] Failed to build patch for build #1.0.23-November-2009.18:09:09, build id: 10, VCS root: ClearCase, due to error: Cannot get version in view 'D:\CCdata\my_vob\my_project' for the directory D:\CCdata\my_vob\my_project
[18:09:37]: [Updating sources] Patch is broken, can be found in file: C:\TeamCity\buildAgent\temp\cache\temp58518patch10
[18:09:37]: [Updating sources] Error while applying patch: Failed to build patch for build #1.0.23-November-2009.18:09:09, build id: 10, VCS root: ClearCase...

这是teamcity-vcs.log文件:

最佳答案

正如问题Continuous Integration with Teamcity and Clearcase中提到的,我们(我和一位同事)确实设法使 TeamCity 与 ClearCase 有效交互,但是:

  • 仅在重写其 ClearCase 插件之后,并且
  • 仅使用动态 View 作为查找更改的源(更新大型快照 View 花费了太多时间)

动态 View 是此类插件的唯一方法,但它们最初的实现效率不高(对每个已更改的文件执行一些cleartool描述 !)

“ClearCase View 的路径”应指 ClearCase View 中源的完整路径(例如,请参阅 this thread)

错误消息出现在 may 2009 中,但当时已被修复。您使用什么路径?


关于your report on JetBrain ,你的配置规范对我来说似乎很奇怪。
我会选择:

  #View files that are checked out.
  element * CHECKEDOUT

  #View files under the MyProject/LATEST branch.
  element /My_vob/... .../MyProject/LATEST

  #Create the MyProject branch.
  element -file /My_vob/... R5.0.0.0 -mkbranch MyProject
  element -dir * /main/LATEST -mkbranch MyProject

  load /My_vob

(注:

  • 使用“/”而不是“\”:两者都适用于 ClearCase,但 TeamCity 插件似乎更喜欢“/
  • .../MyProject 而不是 /main/MyProject:避免假设分支在哪里
    )

关于continuous-integration - 设置 TeamCity 以与 ClearCase 配合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1787070/

相关文章:

git - 为 Git Flow 构建配置

验证代码合并的clearcase命令

jenkins - 将全局gradle.properties添加到Jenkins服务器

build - TeamCity 未满足要求 : MSBuildTools14. 0_x86_Path 存在

makefile - 完美的makefile

sharepoint - 无法使用 msbuild 构建工作流项目 (Sharepoint 2010)

clearcase - 如何检测给定时间后流上是否有任何 checkin

clearcase - 如何在 RTC 源代码管理中查看传送到流的所有更改

github - VSTS 按存储库文件夹过滤?

mercurial - 从 BitBucket 存储库自动部署文件