【问题标题】:Team City 7.0 - How do you configure builds dependent on a shared compiled library?Team City 7.0 - 如何配置依赖于共享编译库的构建?
【发布时间】:2012-08-17 22:28:13
【问题描述】:

这是我第一次尝试在 Team City 中设置构建配置。

在 Subversion 中,所有第三方二进制文件都存储在一个名为 Applications 的单独存储库中,因为它是共享的。

所以在我的本地机器上路径是

D:\Dev\SolutionRoot\WebProjectRoot

其中引用了二进制文件

D:\Dev\Applications

在 Team City 中,我有两种构建配置(一种用于构建项目 (.sln),另一种用于检查第三方二进制文件)。

对于 web 项目构建配置,我添加了一个依赖于“获取第三方二进制文件”的工件依赖项,从“上次成功构建”和工件规则获取工件:

/*/.=>Applications

构建尝试解决工件依赖项失败。

Build 'Furniture :: Build' #528 
Started 'Thu Aug 09 15:13:50 BST 2012' on 'machine name' by 'Ryan'
Finished 'Thu Aug 09 15:14:09 BST 2012' with status 'FAILURE Artifacts resolving failed'
TeamCity URL http://localhost:8111/viewLog.html?buildId=14&buildTypeId=bt2 
TeamCity server version is 7.1 (build 23907)

[15:13:50]: bt2 (18s)
[15:13:50]: Checking for changes (running for 4m:57s)
[15:13:50]: Publishing internal artifacts
[15:13:50]:  [Publishing internal artifacts] Sending build.start.properties.gz file
[15:13:50]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[15:13:50]: Clean build enabled: removing old files from C:\TeamCity\buildAgent\work\a3a48aff6a8b3347
[15:13:50]: Checkout directory: C:\TeamCity\buildAgent\work\a3a48aff6a8b3347
[15:13:50]: Updating sources: agent side checkout (18s)
[15:13:50]:  [Updating sources] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist (running for 4m:56s)
[15:13:50]:  [Updating sources] Cleaning C:\TeamCity\buildAgent\work\a3a48aff6a8b3347
[15:13:50]:  [Updating sources] VCS Root: Furniture (18s)
[15:13:50]:      [VCS Root: Furniture] revision: 528_2012/08/09 12:00:34 +0100
[15:14:09]: Resolving artifact dependencies
[15:14:09]:  [Resolving artifact dependencies] Failed to resolve artifact dependency <Furniture :: Get Third Party Binaries, build #2 [id 10]>: No files matched for patterns "/*/.=>Applications" from <Furniture :: Get Third Party Binaries, build #2 [id 10]> (jetbrains.buildServer.artifacts.ResolvingFailedException)
[15:14:09]:  [Resolving artifact dependencies] Failed to resolve 1 of 1 artifact dependencies
[15:14:09]: Failed to resolve 1 of 1 artifact dependencies
[15:14:09]: Publishing internal artifacts
[15:14:09]:  [Publishing internal artifacts] Sending build.finish.properties.gz file
[15:14:09]: Build failed to start. Artifacts will not be published for this build
[15:14:09]: Build finished

我做对了吗?

【问题讨论】:

    标签: teamcity teamcity-7.0


    【解决方案1】:

    我发现您的设置存在一些问题。

    首先要引入工件依赖项,您应该在源配置中publish those artifacts(在您的情况下 - 配置,检查第三方库)。

    然后,您实际上不应该使用工件依赖项来检查短信。 TeamCity 支持attaching of several VCS roots 进行配置。

    因此,在您的情况下,您可以使用带有两个根的单一配置:根与您的源,根与库。您也可以使用checkout rules 来形成您需要的任何checkout directory 结构。

    【讨论】:

      猜你喜欢
      • 2014-03-22
      • 1970-01-01
      • 2015-03-05
      • 1970-01-01
      • 2015-11-23
      • 2018-10-23
      • 2012-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多