Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is $(System.DefaultWorkingDirectory) set for builds in TFS2015?

I'm trying to modify the value of this variable as it currently points to the source folder of whatever build gets run on the agent instead of the root of the build.

Does anyone know where I can modify this variable? I've looked at the agent's configuration .json file but didn't find anything relevant.

like image 274
Moo Avatar asked Oct 06 '16 21:10

Moo


1 Answers

You can define $(System.DefaultWorkingDirectory) in Variables tab in Build Definition.

I just had a quick test, if I define a new value to $(System.DefaultWorkingDirectory), the output in the task for $(System.DefaultWorkingDirectory) will be the new value:

enter image description here

enter image description here

like image 135
Cece Dong - MSFT Avatar answered Sep 22 '22 17:09

Cece Dong - MSFT