Question

I'm trying to implement Continous Integration with Jenkins, TFS plugin - http://wiki.jenkins-ci.org/display/JENKINS/Team+Foundation+Server+Plugin .

My problem is triggering builds, what I want to do is somehow add a post-commit/checkin hook to Team Foundation Server, so far don't have any idea how to do this, is it even possible?

Don't want to use a trigger by Schedule.

Was it helpful?

Solution

Instead of a post commit hook, what you want to do is listen for check in events.

  1. Client side - write a small utility that listens for checkin events. Effectively it's a small listener app and you set up TFS to send notifications to it using the bissubscribe tool. It's a little old, but this article should give you a starting point.
  2. Server side - write a custom event handler. The basic idea is shown in this blog post, just be aware that changes to your event handler will cause the TFS app pool to recycle.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top