如何为TeamCIty中的待处理更改编写git日志 [英] How to compose git log for pending changes in TeamCIty

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

问题描述

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



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



您需要一个可以调用 git log origin / master..master (请参阅 git:list commit not push to the origin yet ),从GitHub获取。

(参见在GitHub上为TeamCity配置使用Team City Git ,并将su重新您的TeamCity与运行过程中出现正确的帐户

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日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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