I am new to this, so please excuse my ignorance if this is something very basic.
I use the following commands in the 'Execute windows Batch command' tab in a Jenkins job -
cd "C:\Data\Projects\<project name>\00_Mainline"
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe" get "$/Analytical/<project name>/00_Mainline" /force /recursive
This works well if I type it in a command prompt; but when this is run from Jenkins, I get the following error -
Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
After going through several threads in this site, I added
pushd "C:\Data\Projects\<project name>\00_Mainline"
to the top of the script. But this didn't help either.
Any ideas?
Regards, Sudhi