3
votes

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.

1
Clarify your question: what's the relationship between Jenkins and TFS?Giulio Vian
@GiulioVian i'm using this plugin in jenkins wiki.jenkins-ci.org/display/JENKINS/… - hope I understood correctlyGerald Hughes
@Stefan: did you ever have any luck with a TFS post-commit trigger? I'm thinking it may be possible to have a checkin alert, and customize the alert sent to Jenkins to trigger builds: msdn.microsoft.com/en-us/library/bb552337(v=vs.110).aspxDonBecker

1 Answers

1
votes

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.