I use the VSTS online build and release process. I have two servers that have firewalls between them (can't just run a script on Server1 to accomplish moving a file between servers). I have installed the VSTS Agent on both servers and each server is assigned to its own Pool in VSTS. I can release to either server with out any issues.
What I can't figure out (or if its even possible) is how can I copy files FROM an agent in one pool to VSTS' release working directory/temp path (or even better from one pool, directly to another agent pool)?
For example, I have a Server1 in Pool1 and Server2 in Pool2. For my release steps, I have selected "Run on agent" and selected Pool1. I then have a task that copies files over to the agent and it does its thing. What I need to do is then pull down a zip file from a path accessible by the Pool1 server(s) to VSTS and send that zip file to a path accisble by the Pool2 server(s).
Is it possible to download a file from an agent pool? I assume if I was able to have the "run on pool1 steps" store that zip file somewhere in the release temp path/working dir, I would be able to do a windows file copy to send it from the working directory to the "run on pool2 steps".