I'm trying to run a powershell script as a build step for TFS2015. In the script I have tf history /r /noprompt /loginType:OAuth /login:.,$env:SYSTEM_ACCESSTOKEN
, as I saw in this answer, but I get the following error: TF10120: The value OAuth is not supported for option loginType.
Moreover, I don't see any documentation for the /logintype
option. Was it deprecated / not supported in Visual studio 2015?
What can I do to call tf commands from my script with proper authorization?