TEE Gated Check in problem with MyEclipse
-
Monday, June 06, 2011 8:26 PM
Hi,
I'm experiencing a problem with gated check ins with the TEE explorer w/ MyEclipse that's baffling to me. To provide an example I'll use my previous knowledge of the Visual Studio world. When we'd build code in Visual Studio solution, we'd make sure it built locally. Then, we'd check in the code to a specific branch. If this branch used a trigger of Gated Check in, it would spawn a buffer area, whereas, Team Foundation Server would queue a new build on the build agent, and if it were successful, it would come back with a reconcile pending changes. If you clicked reconcile, it would then check in your changes to the TFS database, and you would be good.
With Eclipse, this process works up until this point: when the build finishes on the build agent, and you click reconcile, TFS w/ MyEclipse goes into an infinite loop behavior. You click Reconcile, it asks you to check in your code, you do, and it builds again on the build agent. After it successfully builds again, it asks you to reconcile your changes, and do the same thing again. The only way to exit out of this is to click Ignore. Is this a bug between the communication of the plugin and TFS?
Any ideas or suggestions on a fix would be a great help,
Ryan
All Replies
-
Tuesday, June 07, 2011 5:26 PM
Hi,
I want to clarify something first, the reconcile does not checkin in the changes, the changes should have been already checked in by the build if it was successful. The reconcile undoes your pending changes.
As for the reconcile not working, I could not repro this, have your tried clicking ignore in the build notification window then you can go the build explorer or the Gated Checkin view and right click on the build and do reconcile?
Have you done any changes to the build process template?
Thanks
Mireille
- Proposed As Answer by Shaw TerwilligerOwner Wednesday, June 08, 2011 11:34 AM
- Unproposed As Answer by Ryan Butler Wednesday, June 08, 2011 12:48 PM
-
Wednesday, June 08, 2011 12:51 PM
Hi,
Sorry I got busy yesterday and couldn't reply. I did try your idea and it did work by clicking "Ignore." I have a question then: Should I leave "Preserve Local Changes" checked or unchecked during this process? Is it communicated from Microsoft that you always click "Ignore." If you click "Reconcile" I seem to still go into a infinite loop.
Thanks for any feedback.
-
Wednesday, June 08, 2011 1:09 PMModerator
Could you provide a screenshot of the dialog that's prompting you to check in?
-
Wednesday, June 08, 2011 1:43 PM
Hi,
Well, now it doesn't appear to be doing the infinite loop issue. The thing is, I thought after the gated check in worked, and asked you to reconcile, that checked in the pending changes to TFS to say "it build successfully in the buffer, let's commit the change." Then you were good to go. Here's what happening in the plug-in:
- When it prompts for gated check, I un-check it and build changes
- Once the build is successful, it pops up with the dialog asking for reconcile or ignore.
- If I click either one, the dialog is for the moment going away
If this is the expected behavior, that's fine, just double checking on what's supposed to be happening.
-
Wednesday, June 08, 2011 3:03 PMModerator
If you uncheck "preserve pending changes locally" then that's correct, either "reconcile" or "ignore" will do the same thing. If you do not have any pending changes locally, then there will be nothing to reconcile so the dialog will simply close.
-
Wednesday, June 08, 2011 3:06 PM
So if you check reconcile pending changes, then the following would happen correct?
- Build changes in a buffer
- Once complete, clicking reconcile would check in your changes
And you would be fine correct?
Thanks,
-
Wednesday, June 08, 2011 3:13 PMModerator
No, when you click reconcile, you are given the Reconcile Workspace dialog which provides a list of pending changes that were committed in your gated check in. You may then select which files to reconcile, at which point your local check out will be undone and the version that was committed will be retrieved locally.
- Marked As Answer by Ryan Butler Wednesday, June 08, 2011 3:25 PM
-
Wednesday, June 08, 2011 3:26 PM
Gotcha, that worked as I expected on a test branch. Think I have it straight now.
Thanks,

