I need to be able to download artifacts from a specific previous build to the agent-side part of my build runner plugin. I know about the built-in artifact dependencies, but I can't use this because I need my plugin to do it automatically. I also know I can do this via Ivy, but I don't want to rely on Ivy.
Currently, I'm using the REST API to download the artifacts on the agent, but this requires that guest authentication is enabled, because obviously the agent will not have HTTP credentials. But I need to change this, to not rely on guest authentication being enabled. And I do not want to be dealing with usernames and passwords.
Is there a way I can use the classes in jetbrains.buildServer.artifacts (such as DependencyResolver) to acheive this? It would be sort-of a reimplementation of the built-in artifact dependency feature, but configurable from within my build runner. If this is possible, it would be great if I could have a pointer in the right direction.
I read this: http://devnet.jetbrains.com/message/5287279#5287279 but couldn't see anything useful.