在TeamCity中创建changelog工件 [英] Create changelog artifact in TeamCity

查看:238
本文介绍了在TeamCity中创建changelog工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个简单的方法让TeamCity包含一个文本或html变更日志作为其输出工件之一?

Is there a simple way to have TeamCity include a text or html change-log as one of its output artifacts?

也许我需要走下去的路线有msbuild或一些其他进程创建更改日志,但TeamCity为每个构建生成一个,我想知道是否已经有一个简单的方法来访问它作为工件,并将其包含在工件路径指令,以便它可以是部分

Perhaps I need to go down the route of having msbuild or some other process create the change log but as TeamCity generates one for every build, I'm wondering if there is already a simple way to access it as an artifact and include it in the artifact paths directives so that it can be part of a release package.

推荐答案

是的,更改日志可作为文件访问,此文件的路径在TeamCity构建参数:

Yes, the change-log is accessible as a file, path to this file is in the TeamCity build parameter:

%system.teamcity.build.changedFiles.file%

因此,您可以这样做:


  • 添加命令行

  • 输入此脚本:


copy%system.teamcity.build.changedFiles.file%changelog.txt

copy "%system.teamcity.build.changedFiles.file%" changelog.txt




  • 最后,编辑构建的构件规则,以在工件中包含changelog.txt(常规设置 - >工件路径 - >添加changelog.txt)。 li>

    • Finally edit the artifact rules for your build to include the changelog.txt in your artifacts (General settings -> Artifact paths -> Add "changelog.txt").
    • 这篇关于在TeamCity中创建changelog工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆