Gated Checkin in RTC
I wanted to bring in a gated check-in ability to my project executed in RTC. I wanted to integrate a static analysis tool which get's triggered when the developer checks in code and fail the check in if the code do not follow the quality rules configured in the tool.
Can some one guide me on how to do this.
Can some one guide me on how to do this.
Accepted answer
There is, unfortunately, no extension point for check in. There is only one for deliver. You would have to create an Extension, an advisor, on delivery, that runs the status of the static analysis tool. It needs to be a client side extension, because the analysis tool most likely runs on the client. The advisor would block delivery in case the analysis did not run or did not succeed. See https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for how to create advisors and the related posts you should read, including a links to the Extensions workshop.