将 Teamcity 中构建的工件聚合到单个 zip
目标:设置一个 ant/cmd 脚本,将多个构建的工件打包到一个 zip 中。我计划通过设置最终的构建配置来实现此目的,该配置将依赖于这几个项目。
因此,我的所有构建配置都成功构建,并在构建服务器 @.BuildServer\system\artifacts{PROJECT}{severalconfiguration} 上生成构建工件。在我的“工件聚合”配置中,我需要能够引用这些工件的内容和位置工件正在使用可在我的 ant/cmd 脚本中使用的变量。即我有项目 A,其配置为 w、x 和 y;我如何定义/构造这些配置(w,x,y)的变量,这些变量可以被构建配置z引用。我查看了当前的 Teamcity 文档,即 http://www.jetbrains.net/confluence/display/TCD3/System+Properties+of+a+Build+Configuration#SystemPropertiesofaBuildConfiguration-ref;但我发现这并不能解决我的疑问。
有没有办法可以为配置 w、x 和 y 设置工件路径,以使最终任务更容易?
完成这项任务的最佳方法是什么?欢迎任何想法。
Aim: Set up an ant/cmd script that will package the artifacts from several builds into a single zip. I plan to do this by setting up a final build configuration that will have a dependency on those several projects.
So all my build configurations build successfully and produce build artifacts on the Build Server @.BuildServer\system\artifacts{PROJECT}{several configurations}.. In my "Artifact Aggregating" configuration, I need to be able to reference what and where those artifacts are using variables that can be used in my ant/cmd script. i.e. I have Project A with configurations w, x, and y; how would I define/construct I variables of these configurations(w,x,y) that can be referenced by build configuration z. I looked at current Teamcity documentation i.e. http://www.jetbrains.net/confluence/display/TCD3/System+Properties+of+a+Build+Configuration#SystemPropertiesofaBuildConfiguration-ref; but I find this doesn't resolve my query.
Is there a way I can set up my artifact paths for configurations w, x and y to make the final task easier?
What would be the best way to accomplish this task? Any ideas are welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们就是这样做的。
This is how we do that.