jenkinsci / docker-swarm-plugin

Jenkins plugin which allows to add a Docker Swarm as a cloud agent provider
https://plugins.jenkins.io/docker-swarm/
MIT License
55 stars 47 forks source link

Agents Left Running With No Builds Running #91

Closed David-Villeneuve closed 3 years ago

David-Villeneuve commented 3 years ago

I'm trying to switch from the docker plug-in to docker-swarm.

I have a frequently running template (maybe 5-20 invocations per hour) and I am finding that the Agt-whatever slaves with nothing running are accumulating. I have to go back and manually keep removing these.

Jenkins standard logs are not showing anything unusual.

Jenkins 2.234.2, OpenJDK 8, Ubuntu 16, docker 18.09.7

David-Villeneuve commented 3 years ago

I've narrowed it down to a case where the container being used is intentionally latest, and it's been updated with a lot of files, so the pull/update to the latest container version takes 5-7 minutes. About 10 or so builds using it start at once, so all get hit with this delay.