I add a powershell step in a build definition. I want to execute checkin command during builds. But I add a work item check in policy requires that one or more work items be associated with every check-in. I need to override the check-in policies when execute CI Builds. But before override the policies powershell file will show TF10139: The following check-in policies have not been satisfied. This made the powershell step failed then the build stops.
Added a solution by Will Lennon · Mar 21 at 02:38 PM
Hi Yan and Matej, can you please provide the console logs that show the command you are running (with arguments) and the full output? You should not be seeing a null reference exception and I want to understand how you are hitting that.
The TF10139 warning message is by design. It's not an error. The tf.exe command should return 0 which indicates success.
That null ref is an issue though.
Will Lennon (MSFT)
Team Explorer VS2013 TFS 2010 - TF30063
TF30063 when changing Notification URL
Useful to allow tasks to be 'unassigned'
Cannot add TFS server group to Access Level
unable to see build step logs, tfs 2017