How to make all agents work in the same path?

I have a number of agents, all running in separated machines. I would like all of those agents to run the builds in the same path. So I have set build-path=/home/user/builds in the configuration, expecting builds to be in /home/user/builds/PIPELINENAME. But the builds actually happen in /home/user/builds/XXX/PIPELINENAME, with XXX being the name of the agent.

Is there a way to not have the agent name as part of the path? If it is not possible, what would be the implications of giving the same name to all of the agents?

Thanks for your help

Hey @Louis :wave:

You’ll want to set the BUILDKITE_BUILD_CHECKOUT_PATH in your agent config, or in a hook, so that the path can be changed before the checkout occurs.

We tend to advise doing this in a hook, so that it’s easily managed/can be stored in VCS.

Cheers!