Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在teamcity中设置构建工件_Teamcity - Fatal编程技术网

如何在teamcity中设置构建工件

如何在teamcity中设置构建工件,teamcity,Teamcity,我正在尝试在teamcity中设置构建工件,但遇到问题。下面是artifact命令: Services\Windows\ApiRequestProcess\ApiRequestLoggerService\bin\Release\* => F:\BuildArtifacts\Services\ApiRequestLogger 以下是其中一个错误: 16:43:33]: [Publishing artifacts] Paths to publish: [Services\Windows\A

我正在尝试在teamcity中设置构建工件,但遇到问题。下面是artifact命令:

 Services\Windows\ApiRequestProcess\ApiRequestLoggerService\bin\Release\* => F:\BuildArtifacts\Services\ApiRequestLogger
以下是其中一个错误:

16:43:33]: [Publishing artifacts] Paths to publish: [Services\Windows\ApiRequestProcess\ApiRequestLoggerService\bin\Release\* => F:\BuildArtifacts\Services\ApiRequestLogger, teamcity-info.xml]
[16:43:33]: [Publishing artifacts] Sending files
[16:43:34]: Failed to upload build artifact due to error: java.io.FileNotFoundException: F:\TeamCity\.BuildServer\system\artifacts\API Request Logger Service\API Request Logger Service Build\536\F:\BuildArtifacts\Services\ApiRequestLogger\ApiRequestCore.dll (The filename, directory name, or volume label syntax is incorrect)

有什么想法吗?

您的问题是TeamCity在其数据目录中存储工件,因此您无法指定绝对位置。你需要那个位置的工件吗?如果是这样的话,您将不得不运行一个任务来从artifacts文件夹中复制它们(有一个方法可以帮助您下载工件)

TeamCity将工件存储在磁盘上的 目录结构,可以 直接访问(例如,通过 将操作系统配置为 通过网络共享目录)。 这些工件存储在 /系统/工件文件夹。 存储格式如中所述 TeamCity数据目录部分。建造 工件未在TeamCity中存档 并保持原样(未压缩)


@redsquare是正确的。TeamCity正在归档与您的构建相关的工件。在TeamCity之前,我也是按照您描述的方式做的;)

真正的问题是为什么要这样做(因为您的构建已经存档)?我来猜一猜

如果您这样做是为了便于部署或由另一个构建访问,那么有一个替代方案。。。在TeamCity中:依赖项/工件依赖项。您可以在另一个CI生成中使用CI生成的输出。。。或者以直接的方式部署构建


查看我的答案以了解更多详细信息。

我尝试将其更改为相对路径,但仍然不起作用,没有错误,但没有复制任何内容。[发布工件]要发布的路径:[Services\Windows\ApiRequestProcess\ApiRequestLoggerService\bin\Release*=>..\..\..\..\..\\ BuildArtifacts\Services\ApiRequestLogger,teamcity info.xml][09:21:22]:[发布工件]发送files@Justin-您不能这样做-它必须是相对的(向下)到teamcity数据字典中的build文件夹的根目录。@redsquare pita是指您可以在teamcity 6中执行此操作…build/***=>C:\Cowant\trunk\Assemblys\…但在teamcity 9中,它不会抛出错误,但不起作用。:S