在Team Foundation Server中添加post-commit / checkin hook?

时间:2014-03-13 11:51:42

标签: tfs jenkins msbuild continuous-integration

我尝试与Jenkins实施持续集成,TFS插件 - http://wiki.jenkins-ci.org/display/JENKINS/Team+Foundation+Server+Plugin

我的问题是触发构建,我想要做的是以某种方式向Team Foundation Server添加一个post-commit / checkin钩子,到目前为止还没有任何想法如何做到这一点,它甚至可能吗? / p>

不想按计划使用触发器。

1 个答案:

答案 0 :(得分:2)

而不是发布提交挂钩,你想要做的就是监听签入事件。

  1. 客户端 - 编写一个侦听签入事件的小实用程序。实际上,它是一个小型的监听应用程序,您可以设置TFS以使用bissubscribe工具向其发送通知。它有点旧,但this article应该给你一个起点。
  2. 服务器端 - 编写自定义事件处理程序。基本想法显示为in this blog post,请注意,对事件处理程序的更改将导致TFS应用程序池回收。