I've resolved this issue by defining my agent with a dockerfile. This allows for execution-time expansion of variables.
dockerfile