Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-20-2010, 12:09 PM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
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
Reply With Quote
  #2  
Old 12-20-2010, 12:22 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 12-20-2010, 12:26 PM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
Awesome; works brilliantly. Thanks a mil!
Reply With Quote
  #4  
Old 02-22-2012, 02:37 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
This is implemented in v8.0.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



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


Copyright © 1999-2023 Kinook Software, Inc.