How can I implement a build pipeline with TFS
continuous-integration, tfs
Solution
1) Write a service that listens for the BuildCompleted event. IIS webservice sample code. Self-hosted WCF sample code. In your event handler, either call the TFS Build API to kick off a separate build type that defines additional tasks, or simply execute custom code directly from here.
2) Register your service with TFS, adding a server side filter on successful builds.
Problem
I try to implement a build pipeline using TFS. We already have TFS building our projects after each commit. But the build take too long so we would like to split the build into two stages. Continuous integration literature suggest this technique. So what I am looking for is something to do the following. - Developer checks in his source code. - TFS automatically triggers a build to compile the code and run some basic tests (we already have that). The developer gets quick feedback that his changes did not break something obvious. - Next if the build succeeded a new TFS task/build is triggered which takes the artifacts from the previous stage and runs some more time consuming tests. Any ideas on how to implement this?