Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Jenkins Build Step in Parallel

Tags:

jenkins

Is there a way to run Jenkins build step in parallel.

I know I can run multiple jobs in parallel, but I need to collate the unit test result and code coverage and use it generate a report.

So jobs in parallel might not be achieve the purpose, so I need to run build steps in parallel.

Any ideas?

like image 933
javapadawan Avatar asked Sep 09 '15 08:09

javapadawan


People also ask

Can we run parallel builds on Jenkins?

Jenkins is a great CI tool when it comes to flexibility. Every simple thing can be done in ten different ways, including parallelizing a build.

Does Jenkins support parallel execution?

Parallel Job Execution in Jenkins In Jenkins, there are several ways to implement parallel job execution. One of the common approaches is the parent-child build model. In this model – a parent (upstream) job is triggering child (downstream) jobs.

How do I run multiple jobs in parallel in Jenkins?

Use mulijob in the following way: When creating new Jenkins jobs you will have an option to create MultiJob project. In the build section, this job can define phases that contain one or more jobs. All jobs that belong to one phase will be executed in parallel (if there are enough executors on the node)


1 Answers

Sounds like a job for the Jenkins Multijob plugin. You can create 2 phases:

Phase 1 : Builds jobs which run in parallel

Phase 2 : Collate results and generate report. You can specify this job to run only after the first phase is complete, and only if its successful etc.

like image 161
Somaiah Kumbera Avatar answered Sep 20 '22 02:09

Somaiah Kumbera