0

I have this scenario:

I have a Jenkins Job which basically performs the build and followed to that it starts deploying the artifacts into the virtual machines.

Here is my problem. At the moment I deploy artifacts one by one sequentially i.e. via ant task from the same build.xml file.

Deploy and install Artifact 1
Deploy and install Artifact 2
Deploy and install Artifact 3
Deploy and install Artifact 4

Each of these deployments take 30 mins.

So I am interested to know how I can plan to parallelize this.

As the deployment is not that resource intensive I am not interested to use slave Jenkins. So it will probably be a bit overkill.

Exploring
  • 2,493
  • 11
  • 56
  • 97

1 Answers1

1

You'll want four executors on your jenkins master. You can do this by going to manage jenkins > Manage Nodes > Master > Configure, and change the "# of executors" to 4

Then you'll want to split your jenkins job into four jobs - each calling one of your ant targets. The build flow plugin is genius, however you may not need it.

thekbb
  • 7,668
  • 1
  • 36
  • 61
  • Do I really have to go to master slave way, as I was thinking that may be a overkill for achieving this. – Exploring Dec 06 '13 at 19:15
  • You don't need to add slaves, I edited the answer to be clearer. Each node (master and/or slaves) can have 1 or more executors - think of them as execution threads. One job can run on each executor, they can be concurrent. – thekbb Dec 06 '13 at 20:09