本文介绍了如何为TeamCIty中的待处理更改编写git日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TeamCity代理配置为构建我的XCode项目,并使用github。我想在我的发行说明中自动包含TeamCity中所有未完成提交的描述。



如何从github中获取它们并将它们存储在teamcity中?一旦我将它们放入teamcity变量中,我可以轻松地将它们添加到我的构建脚本中。 您可以使用功能,以便从构建步骤更新一些构建参数。



您需要一个可以调用 git log origin / master..master (请参阅),从GitHub获取。

(参见,并将su重新您)

I have a TeamCity agent configured to build my XCode projects and I use github. I would like to automatically include in my release notes the descriptions from all pending commits in TeamCity.

How can I fetch them from github and store them in teamcity? Once I put them in a teamcity variable I can easily add them to my build script.

解决方案

You could use the "Adding or Changing a Build Parameter from a Build Step" feature in order to update some build parameters right from a build step.

You would need a step which would call git log origin/master..master (see "git: list commits not pushed to the origin yet"), after fetching from GitHub.
(See "Using Team City With Git " for the TeamCity configuration with GitHub, and make sure your TeamCity is runnig with the right account)

这篇关于如何为TeamCIty中的待处理更改编写git日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 06:45