Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a Jenkins job on multiple virtual servers?

Tags:

jenkins

devops

I have installed Jenkins on a server ,by default the job will run on that server only .My requirement is from my Jenkins how I can run the the same job on to multiple server ?How it will ssh to other servers ? I am new to Jenkins,Please help .Basically my aim is to deploy a application on to multiple servers .

like image 265
Sidhartha Avatar asked Jan 03 '23 21:01

Sidhartha


1 Answers

You may use any of the configuration management tool like ansible, chef or capistrano as jenkins jobs so that they can do your work with jenkins. You can mention the number of servers under the capistrano cookbook and whenever you will build the job it will run your task on all servers.

There is also a tool like pssh(parallel ssh), In case you want to use ssh.

like image 180
mohit Avatar answered Jan 13 '23 14:01

mohit