Followed https://blog.devart.com/creating-tfs-custom-check-in-policy-part-1.html
I have added the registry key and value, however unable to see the gated policy being applied.
I also have a gated check-in policy enabled, which allowed for each checkin to be built on TFS.
It is my assumption that TFS should stop you (show a warning/error based on the policy that is currently being implemented) before the gated-checkin popup is shown.
Any help would be appreciated.
Yes the Check-in Policy is a warning such as below picture. Only if there is a pending change and not meet the policy. Visual Studio will generate a row called Policy Warnings:
The following check-in policies were not satisfied:
You must .......
If you ignored the warning and insist on checking in, you will get a failure and nothing checked in.
Only after you already met check in policy, then gated check-in dialog will pop-up and ask you to build. Once build passed verified , your local pending changes will finally be checked in.
If your customized check in policy not work, make sure it already added in Source Control Settings and been enabled.
Hope it's clear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With