Running Steps in Parallel

The main advantage to running steps in parallel is increased performance. You can set a step to run serially as a synchronization point and then execute more steps in parallel. For example, running steps to execute tests on different platforms concurrently would mean numerous tests could complete in the same time period. This tutorial demonstrates how to run steps in parallel.

To view an example procedure for this tutorial , go to the automation platform UI > Projects > EC-Tutorials- <version> , and click the procedure name.

An explanation of what you see:

This procedure contains 5 steps:

  • Step 1 and 2 run in parallel.

  • The third step (sync) is a sync point where the procedure waits until steps 1 and 2 finish executing.

  • Steps 4 and 5 execute in parallel after the sync point.

  • Steps 1, 2, 4, and 5 execute simple Perl scripts that print a message and "sleep" for a period of time.

Using "sleep" is not required, but used here to make sure each parallel step runs long enough to be visible while running this tutorial.

Click Run to run this sample procedure and see the resulting job status on the Job Details page.


Use the following information to create steps to run in parallel in your procedures. Any changes you make within this tutorial will not be saved when you upgrade CloudBees CD.

Steps run in parallel if you select the Run in Parallel option in the Advanced section on the Step—create new or edit existing step page.