TeamCity:成功推进Git Repo [英] TeamCity: On successful build push to Git Repo
问题描述
TeamCity可以将成功的构建推送到git存储库吗?
我无法在TeamCity中看到具体的构建步骤。 TeamCity 7.1.1版本
Thanks,Henrik
更新:
好的,谢谢你的回答,
我觉得有点复杂。
我发现我可以简单地将成功构建的标签推回到我的全局存储库中,TeamCity从中获取构建数据。
如果TeamCity为这种工作流提供了一个简单的选项,我会很高兴!
如果每个开发人员都可以从一个仅在构建成功时更新的repo中取出,或者我在这里出错,那将会非常棒?
git push< repository>
推送到不同的存储库)。确保 git
不需要针对推送操作的交互式验证。 相关示例Heroku使用 git push
)可以在这里找到: http://blog.carbonfive.com/2010/08/06/deploying-to-heroku-from-teamcity/ 。
Can TeamCity push successful builds to a git repository?
I cannot see a specific build step in TeamCity to do this.
I use the version 7.1.1 of TeamCity
Thanks, Henrik
UPDATE:
Ok thanks for your answer, I find it a bit complicated. I found out that I can simply push back tags on successful builds to my global repository from which TeamCity fetches data for the build. I can pull changes from it and see whether the last commits were successful.
I would be happy if TeamCity provided a simple option for this kind of workflow!
It would be awesome if every developer could just pull from a repo that is only updated when the build is successful, or am I wrong here?
You can have TeamCity execute a shell script that subsequently calls git push
(with appropriate arguments, e.g. git push <repository>
to push to a different repository). Do make sure that git
doesn't need interactive authentication for the push operation.
A related example (deploy to Heroku using a git push
) can be found here: http://blog.carbonfive.com/2010/08/06/deploying-to-heroku-from-teamcity/.
这篇关于TeamCity:成功推进Git Repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!