作为构建步骤的一部分,我想在发布构建时获取特定构建的更改日志。具体地说,是Git提交信息。
我不确定是否可以在构建步骤中通过Git实现此操作,或者将更改日志作为可访问的参数。非常感谢您的帮助。
我不确定是否可以在构建步骤中通过Git实现此操作,或者将更改日志作为可访问的参数。非常感谢您的帮助。
git log
很可能是你要找的答案:
anew@Wintermute$ git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
* 8e11818 2013-02-05 | Add first rough prototype of json controller. Add naive first model as a placeholder. Add separate contexts
* 6570201 2013-01-30 | Remove DAO layer. Preparation for graph data layer. [4n3w]
* a079c87 2013-01-30 | Cleanup. Wish I had more time for this! [4n3w]
编辑:我找到了这个如何为TeamCity中未完成的更改组合git日志,可能是你正在尝试做的重复内容。