且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 TeamCity 中创建变更日志工件

更新时间:2023-02-07 13:05:51

是的,更改日志可以作为文件访问,该文件的路径在 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

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