TeamCity本地工件路径模式

时间:2016-09-02 15:12:58

标签: teamcity

我想创建自动上传到ftp,使用'FTP Upload'运行器,具有不同的构建配置,这取决于主要配置的成功构建。但事情是我不知道模式。至于现在的路径看起来像这样:

C:\ProgramData\JetBrains\TeamCity\system\artifacts\<project_name>\<build config name>\528

哪个变量包含最后一个数字?

1 个答案:

答案 0 :(得分:0)

The problem was with bad description of my problem, more definiteve one: I have to store artifacts on FTP. FTP is on the same machine as TC server and agent (don't ask me why). So I have to somehow grab artifacts and put them into ftp://"project"/msi and ftp://"project"/nuget, depending on build configuration. I've tried: Grabbing artifacts directly - from folder shown in the initial post, idea failed.

The solution is to create another build configuration and set Artifact dependencies, this makes artifacts reachable from new build configuration, which allows to use FTP Upload runner.

Thanks everyone!