Question

I'd like to be able to stop build for some build definitions programmatically. First I thought about creating some event handler (soap service or TFS plugin) to solve this issue. But unfortunatelly it seems like there isn't appropriate event in TFS (that would be raised when build is just started).

Is there the way to solve this issue?

Thank you!

Elena

Upd: The problem has been solved by call of cutom build task in the very first target in TFSBuild.proj

Was it helpful?

Solution

Most build monitors seem to periodically poll TFS to see if there's any new builds, this obviously won't work for you as there will be too much of a delay to cancel the build.

I suggest you modify the build template to do a web request right at the start. Or just putting the logic to cancel the build in the actual template.

May i ask why you need to cancel builds anyway? there may be a better alternative.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top