Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Team Foundation checkin unmodified file - question/suggestion (https://www.kinook.com/Forum/showthread.php?t=4746)

jdavidi 12-20-2010 11:09 AM

Team Foundation checkin unmodified file - question/suggestion
 
Greetings!

We're in the middle of migrating a bunch of our Vault-stored projects to TFS 2010, and I'm updating our corresponding Visual Build source control steps along with it.

One of our procedures involves the checkout, possible modification, and checkin of a file. Vault's checkin command is successful whether or not the file is modified, however with TFS, the checkin is throwing an Exit Code of 1, a "partial success" when we don't have local changes, per this article:

http://blogs.msdn.com/b/richardb/arc...xit-codes.aspx

I'm assuming Visual Build (7.7) is only allowing 0 as a successful exit code. Is there any current way around this using the Team Foundation action?

I'll probably make this command a Run Program action for now with allowed exit codes of 0 and 1, but if there's no current workaround, I think it'd be a great addition to the Team Foundation action's Checkin tab to allow the TFS checkin exit code 1 (ParticalSuccess) to be an optional success step condition.

Thanks much!

--jdavidi

kinook 12-20-2010 11:22 AM

You can handle this by adding a vbld_StepDone script event like this to the Team Foundation steps:
Code:

Sub vbld_StepDone()
  If vbld_TempMacros()("RUNPROGRAM_EXITCODE") = 1 Then Step.BuildStatus = vbldStepStatSucceeded
End Sub

http://www.kinook.com/VisBuildPro/Ma...riptevents.htm

We'll also add to our request list explicit support for this in the Team Foundation action.

jdavidi 12-20-2010 11:26 AM

Awesome; works brilliantly. Thanks a mil!

kinook 02-22-2012 01:37 PM

This is implemented in v8.0.


All times are GMT -5. The time now is 06:33 PM.


Copyright © 1999-2023 Kinook Software, Inc.