TF10139 Error:Internal error in Changeset Comments Policy for tf checkin command

独自空忆成欢 提交于 2019-12-13 20:28:21

问题


I add a power shell step in my build definition(vNext). I want to execute Tf checkin command to checkin one file during the build process. We have only one Checkin policy for Mandatory checkin comments.

I started with tf checkin command and passed through some road blocks to successfully checkin my file. But i still have a warning logged in my Changeset details which says below warning message :

Microsoft.TeamFoundation.VersionControl.Controls.PolicyEvaluationStub   Internal error in Changeset Comments Policy. Error loading the Changeset Comments Policy policy (Object reference not set to an instance of an object.). Installation instructions: 

Below is my command :

tf Checkin $source_dir  /comment:"Publish new version details" /noprompt /force /bypass /override:"Publishing Version details"

I tried to follow some of the links provided at M/S Developer Community and MSDN Forums . They don't provide a definite answer and say that the issue is fixed in the next build agent versions. Out TFS agents or on the latest TFS build agent version (2.117.2) so i assume the fix is already included in my agent version .

I need to get rid of this warning message in my Changeset details.Below is the screenshot

Warning message in Changeset details

Appreciate any help here.Thanks


回答1:


I tested at my side with the Agent.Version 2.117.2, the PowerShell step failed, but the changes are checked in successfully.

The issue is fixed in Agent.Version 2.122.1. I tested with the Agent.Version 2.122.1, it's working without any error.

So, you can download and install the Agent.Version 2.122.1 or later version from here, then try it again.



来源:https://stackoverflow.com/questions/47168407/tf10139-errorinternal-error-in-changeset-comments-policy-for-tf-checkin-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!