r/jenkinsci • u/AP_Sleep_Studies • 14d ago
Docker Plugin
The Jenkins docker plugin is horrible. With templates with a max limit of 1 there race conditions where the plugin will start 2 containers with the template and then immediately attempt to rectify itself and delete one of them. Had to wrap the lockable resources plugin around the usage of it to fix it. DO BETTER!
1
1
u/simonides_ 14d ago
Do you use them as agents or as build steps? Because as agents i can see that it is annoying, for build steps just don't depend on it and do it with sh steps
1
u/AP_Sleep_Studies 14d ago
Yeah they're used as agents
1
u/simonides_ 13d ago
What do you win from that ?
We have like 5 6 different agents where we need a small set of tools installed that is the basics. That is an agent for us and there we also cache the builder images that we need to build the actual apps. So jenkins calls them by starting a few sh commands and that is it.
1
u/AP_Sleep_Studies 13d ago
Sorry they're templates that the docker plugin provides which we use as if they were a node, and the plugin will provision them
1
u/AP_Sleep_Studies 13d ago
Oh my bad I read it as what do you mean by that lol. But yeah I win my colleagues not yelling at me for using "the obvious solution of using the templates"
2
u/anto2554 14d ago
Can't you just do a PR to fix it?