I’m using two different build servers, one for builds with static code analysis, one without, to build some large Windows solutions.
Building on the two servers works perfectly well, but after that’s done, I need the artifacts on one server. There’s quite a bit of built-in functionality to deal with artifacts, but I would very much prefer a direct file copy instead.
It works if I hard-code the directories like \server1DevOpsAgent_work1b
, but I will have a problem if the directory is not “1”, or if the server name changes (I’m selecting servers via agent demands only).
Is there a way, at runtime, to find which directories the “other” server is using?
Haven’t found an answer in the Microsoft documentation, or online.