I am trying to check in files into Microsoft Visual Studio TFS from jenkins using the tf.exe check in command. The command works fine when executed from a command prompt in windows but when i incorporate the commands in a .bat file and invoke through ANT scripts in Jenkins i am getting the below error. Could you please let us know what probably might be the issue?
On another note the same credentials are being used in the jenkins job to get files from TFS successfully.
Error:
TF30063: You are not authorized to access http://<>:8080/tfs/<>
Bat file:
cd %1 tf workspaces /collection:http://<>:8080/tfs/<> login:<>,<> tf add %2 tf checkin /noprompt
Execute Windows batch command
andInvoke ANT
in Build section of a Jenkins item? – PatrickLu-MSFT