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 49 forks source link

Multiple Swarms #90

Open David-Villeneuve opened 4 years ago

David-Villeneuve commented 4 years ago

Are multiple swarms allowed?

I ask because we have a group of very powerful hosts we want to load-balance builds that require those, and then we have lots of other not-as-powerful-hosts that we want to put in a separate swarm.

I ask because I defined a second swarm, but cannot launch the agent I setup on it.

gowthamchinna commented 4 years ago

+1

michaelPf85 commented 3 years ago

Hello,

I've begun working on it, though I cannot push a branch in this repo nor create a pull request. It seems a bit pervasive in the code, the swarm is considered as some sort of singleton, but I'm making progress toward at least being able to build on two different swarms: https://github.com/eskersoftware/docker-swarm-plugin/tree/feature/multiple_swarms

EDIT: I can create a PR, I just messed up my sessions while telecommuting.

nikhil-kalbande commented 3 years ago

@michaelPf85 - we also got a situation where we want to connect multiple docker swarm cluster on same jenkins., so my assumptions is correct that we cant connect multiple swarm cluster with current plugin. If yes, any plans to get this change in.

Banibaal commented 2 years ago

We also need this feature because it's easiest for us to deploy/destroy swarms than to manage the nodes afterwards.