I am trying to use the Team Foundation Check In Pending Changes in FB6.2
We have a check in policy that says that all check ins have to be associated with a work item and the name of the code review supplier. I have worked out how to set the code review, but I cannot see any way of associating a work item with the check in.
I have ticked the Override the checkin policy and when I remove the Checkin Notes I get the following error:
Path to Executable: D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe Workspace Directory: F:\ Command line: checkin /comment:"Changes from Continuous build" /noprompt /override:"Continuous build so not associated with a work item" "F:\Symphony\Dev\LPEG_RES" "F:\Symphony\Dev\Wise Install\iManage Gazetteer 10g.wsi" "F:\Symphony\Dev\Wise Install\iManage Gazetteer.wsi" "F:\Symphony\Dev\Wise Install\Symphony Oracle.wsi" "F:\Symphony\Dev\Wise Install\Symphony SQL Server.wsi" "F:\Symphony\Dev\Wise Install\TfL iManage.wsi" /recursive TF10117: The following check-in note does not pass check-in requirement: Code Reviewer: A value must be specified for the check-in note. TF10139: The following check-in policies have not been satisfied: You must associate this check-in with one or more work items. The policies have been overridden. No files checked in. Failed!
If I add the Checkin Note for the Code Reviewer I get the following error;
Path to Executable: D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe Workspace Directory: F:\ Command line: checkin /comment:"Changes from Continuous build" /noprompt /notes /override:"Continuous build so not associated with a work item" "F:\Symphony\Dev\LPEG_RES" "F:\Symphony\Dev\Wise Install\iManage Gazetteer 10g.wsi" "F:\Symphony\Dev\Wise Install\iManage Gazetteer.wsi" "F:\Symphony\Dev\Wise Install\Symphony Oracle.wsi" "F:\Symphony\Dev\Wise Install\Symphony SQL Server.wsi" "F:\Symphony\Dev\Wise Install\TfL iManage.wsi" /recursive Option notes requires a value. Failed!
I also get the above message if I uncheck the Override the checkin policy checkbox.
The problem is that we are calling the Team System command line tool (tf.exe) which unfortunately doesn’t have the ability to associate a work item with checkin’s. There is a TFS power tool that you can call, I did find some useful info here :
Thanks, but I am quite happy to override the Checkin Policy and not associate with a work item, but the override does not seem to work as it is still giving me the error: Option notes requires a value, see below
Path to Executable: D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe Workspace Directory: F:\ Command line: checkin /comment:"Changes from Continuous build" /noprompt /notes /override:"Continuous build so not associated with a work item" "F:\Symphony\Dev\LPEG_RES" "F:\Symphony\Dev\Wise Install\iManage Gazetteer 10g.wsi" "F:\Symphony\Dev\Wise Install\iManage Gazetteer.wsi" "F:\Symphony\Dev\Wise Install\Symphony Oracle.wsi" "F:\Symphony\Dev\Wise Install\Symphony SQL Server.wsi" "F:\Symphony\Dev\Wise Install\TfL iManage.wsi" /recursive Option notes requires a value. Failed!
I am assuming it referes to the /notes parameter and refers to the Checkin Notes tab on the action. This error only appears if I have entered something in the box. If I leave this empty I get the following:
Path to Executable: D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe Workspace Directory: F:\Symphony Command line: checkin /comment:"Changes from Continuous build" /noprompt /override:"Continuous build so not associated with a work item" "F:\Symphony\Dev\LPEG_RES\*.*" "F:\Symphony\Dev\Wise Install\iManage Gazetteer 10g.wsi" "F:\Symphony\Dev\Wise Install\iManage Gazetteer.wsi" "F:\Symphony\Dev\Wise Install\Symphony Oracle.wsi" "F:\Symphony\Dev\Wise Install\Symphony SQL Server.wsi" "F:\Symphony\Dev\Wise Install\TfL iManage.wsi" TF10117: The following check-in note does not pass check-in requirement: The policies have been overridden. Code Reviewer: A value must be specified for the check-in note. TF10139: The following check-in policies have not been satisfied: You must associate this check-in with one or more work items. No files checked in. Failed!
Ok, I will look at this when I get in to the office on monday (don’t have TFS at home!). I suspect it’s not likeing how we specify the command line for the override.