从外部位置将工件添加到 Team City

Add Artifacts to Team City from External Location

我希望在我的 Team City 服务器上建立一个构建,它需要使用来自外部源(网络路径)的 dll。

我想知道是否有一种简单的方法可以通过 REST API 或 Powershell/Command Line runners 从网络位置在团队城市中手动创建工件。

如有任何建议,我们将不胜感激。

只需创建一个脚本(bash/BAT 等)即可使用 cURL、wget 或其他类似工具为您获取 DLL。 运行 作为开始测试之前的单独步骤,你应该很好。

创建构建配置:"External Resources"

  • 构建步骤:命令行

    mkdir Resources

    xcopy Z:\lib\ ./Resources

  • 在 Artefacts 规则中,指定:

    Resources/*.dll

创建构建配置:"External Resources"

  • 添加对 External Resources
  • 的快照依赖
  • 添加对 Resources/MyLibrary.dll
  • 的 Artefact 依赖