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

Prevent premature removal of agent when Jenkins is in quiet mode #114

Closed David-Villeneuve closed 1 year ago

David-Villeneuve commented 2 years ago

Issue: https://github.com/jenkinsci/docker-swarm-plugin/issues/113

When Jenkins is in quiet/prepare for shudown mode, new builds will cause an agent to be instantiated. The retention strategy code will remove the agent within 2-3 minutes. Added a check to see if Jenkins is in quiet mode and if it is, don't check again until the next audit (1 minute in the code).

To test.