0

In another post, it was mentioned that $(System.DefaultWorkingDirectory) in Azure pipelines has ill effects. I am curious what are the downsides of using this (we use these in lots of pipeline tasks for testing, downloading results and publishing).

Original post (I do not have access to make comments yet, so could not ask in that post, and did not want to derail that discussion.)

Greg Burghardt
  • 17,900
  • 9
  • 49
  • 92
  • Not sure. These are advantages to using the `Build.BinariesDirectory` or `Build.ArtefactStagingDirectory` since these are configurable with the clean settings on the job/build. Using the default working directory doesn't have such an advantage. Another reason could be because it is not an explicit folder. Looking at the workflow, can you tell exactly were the file will drop? – jessehouwing Feb 01 '22 at 19:00
  • I have not had problems with files dropping. I was hoping to understand any limitations so I know what to watch for. I do have some issues with files being really large, so I was curious when this working directory clears it files to ensure it is not retaining files from prior pipelines or tasks within the same pipeline. – Kim Clausing Feb 02 '22 at 14:13
  • Yeah, the Build Definition configuration givens what will be deleted. – jessehouwing Feb 02 '22 at 14:15

0 Answers0