Dynamically target agent when creating build

I’ve kind of sorted this, am just using env vars to configure the agent section of the pipeline.