使用VSS进行CruiseControl.NET构建项目

时间:2009-02-13 17:07:55

标签: .net cruisecontrol.net visual-sourcesafe

我正在尝试为从VSS 2005中提取的客户端进行构建(是的,我别无选择)。我很确定我的所有配置都正确,但我一直收到这个错误:

  

源控制操作失败:$ / Utilities / Orbital Gateway / Solution Architecture / Release Construction / Payment Subsystem / Services / PaymentService不是现有的文件名或项目

我直接从SourceSafe复制了项目路径,所以我知道它是正确的。

这是我的配置:

<sourcecontrol type="vss" autoGetSource="true">
  <executable>"C:\Program Files\Microsoft Visual SourceSafe\ss.exe"</executable>
  <project>"$/Utilities/Solution Architecture/Release Construction/Payment Subsystem/Services/PaymentService"</project>
  <username>XXXXXX</username>
  <password>XXXXXXX</password>
  <ssdir>\\server\VSS_Data\<ssdir>
  <workingDirectory>C:\Builds\PaymentService\Dev</workingDirectory>
  <cleanCopy>true</cleanCopy>
</sourcecontrol>

可执行文件是指构建服务器上的ss.exe,还是实际存放代码的服务器。我指出了构建服务器。

任何帮助将不胜感激!

2 个答案:

答案 0 :(得分:1)

ss.exe是构建服务器上的SourceSafe可执行文件,因为它将在构建源之前执行检出。如果VSS与构建服务器在同一台计算机上运行,​​则文档声明可以省略此项。

  

SS.EXE的位置。如果在集成服务器上安装了VSS,则将从注册表中读取VSS的位置,并且可以省略此元素。

你的配置似乎是正确的。

文档:http://confluence.public.thoughtworks.org/display/CCNET/Visual+Source+Safe+Source+Control+Block

答案 1 :(得分:0)

我遇到的问题是为什么不在\ server \ vss_data找到项目?

需要注意的是,在错误消息中,它在“Utilities”和“Solution Architecture”之间有“Orbital Gateway”,但在您的示例脚本中,缺少该部分路径。