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

╄→尐↘猪︶ㄣ 提交于 2019-12-12 13:08:15

问题


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.


回答1:


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:



来源:https://stackoverflow.com/questions/39905758/where-is-system-defaultworkingdirectory-set-for-builds-in-tfs2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!