Where to find 'CheckInOnBuddyBuildSuccess=true' info in TFS2010 since CommandLineArguments is obsolete?

Answered Where to find 'CheckInOnBuddyBuildSuccess=true' info in TFS2010 since CommandLineArguments is obsolete?

  • Monday, March 05, 2012 4:36 PM
     
     

    In TFS2008, IBuildDetail.CommandLineArguments has 'CheckInOnBuddyBuildSuccess=true' info to indicate if the changes from the shelveset will be checked in automatically after the buddy build succeeds. But where can we get the same info in TFS2010 since CommandLineArguments is obsolete? Even though TFS2010 queue new build wizard can ask ‘What do you want to build?” (either 'latest sources' or 'Latest sources with shelveset' can be selected) and provide another option “Check in changes after successful build” while queueing the private build, how can we get the options after the build is queued? 

All Replies

  • Tuesday, March 06, 2012 7:38 AM
    Moderator
     
     

    Hi TFS2010 user, 

    Thanks for your post.

    There’s no the MSBuild command-line argumentoption in TFS 2010 when we queue the Build Definition. 

    As you said, if we want to check in the shelveset after build successfully in TFS 2010 Build, when we queue the Build Definition, we can select the Latest source with shelvset under What do you want to build, then select the shelveset name under Shelveset nametextbox and checked the Check in changes after successful build. Then click Queue to build the project, if the project be built successfully, that shelveset will be check-in to TFS 2010.

    In TFS 2010, we usually create the Gated Check-inBuild Definition to achieve this scenario, for the detailed information about Gated Check-in build definition, please refer to: http://blogs.msdn.com/b/patcarna/archive/2009/06/29/an-introduction-to-gated-check-in.aspx and http://intovsts.net/2010/04/18/the-gated-check-in-build-in-tfs2010/.        


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • Tuesday, March 06, 2012 5:02 PM
     
     Answered

    IBuildDetail.Reason is the API I was looking for. Its enumeration value CheckInShelveset is used to specify whether to check in the shelveset or not. 

    Thanks

    • Marked As Answer by TFS2010 user Tuesday, March 06, 2012 5:02 PM
    •  
  • Wednesday, March 07, 2012 1:49 AM
    Moderator
     
     

    Hi TFS2010 user, 

    Thanks for your reply.

    And thank you for sharing your experience here.

    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community. 


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us