r/jenkinsci • • Oct 13 '26

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!

0 Upvotes

11 comments sorted by

2

u/anto2554 Oct 13 '26

Can't you just do a PR to fix it?

-1

u/AP_Sleep_Studies Oct 13 '26

I'm at a strict company, I can't just modify the third party software, it has to get approved

-1

u/AP_Sleep_Studies Oct 13 '26

Also there's like a 90% chance they'll reject the pr and say something along the lines of "this is not conducive to the philosophy of our plugin" or some crap like that

3

u/gounthar Oct 13 '26

Try a PR, or at least an issue. Saying it here only won't help, I'm afraid. 🤷

1

u/AP_Sleep_Studies Oct 13 '26

Nah complaining is fun lol

1

u/AP_Sleep_Studies Oct 14 '26

Why you booing me I’m right

1

u/simonides_ Oct 13 '26

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 Oct 13 '26

Yeah they're used as agents

1

u/simonides_ Oct 13 '26

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 Oct 13 '26

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 Oct 13 '26

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"