On Thu, Feb 28, 2019 at 2:47 PM Ivan Fernandez Calvo
<
kuisat...@gmail.com> wrote:
> when we spin more than 100 agents at the same time, […] pipelines try to reuse an agent because the way we manage to put the agent offline and destroy (about 1-2% of times)
So, some sort of race condition? Probably depends on what APIs you are
using to take the agents offline. `OnceRetentionStrategy` is supposed
to work for this case.
A much more efficient and less flaky approach is to bypass the `Queue`
altogether, as the `dockerNode` step does, though this means you
cannot use an unmodified `Jenkinsfile`.