This might be old news for some but figured I would share.
One feature of TFS is it allows you to perform a gated checkin where the checkin will only occur if the build/tests are successful. I used this in the past a few times when I was making some changes that were conjecture if it would fix the problem on the build server. (binding redirects, path issues, and failures that only seem to occur on the build server)
Create a shelve of your changes
- Go to the build tab in team explorer and right click on “Development” then click on “Queue New Build…”
- Under the general tab, adjust the “What do you want to build?” to be “Latest sources with shelveset”
- Pick the shelveset name
- Tick the “Check in changes after successful build”
- Click “Queue"
This will cause a build to start on the build server with the latest sources in source control and your shelve set changes. If all goes well the shelveset will be checked in at the end of the build.
note: Your changes will remain checked out locally, but if you get latest your checked out changes will match what is in source control and will now be synchronized
Cover image credit: