skip to content
Alvin Lucillo

Bitbucket Parallel Steps

/ 1 min read

💻 Tech

In Bitbucket, if you have steps that can run independently, you can run them in parallel. The benefit of doing this is saving time by not waiting for other non-related steps to complete. In the example below, *download-repo needs to complete first before parallel jobs can start.

definitions:
# some steps defined here

pipelines:
   pull-requests:
     '**':
       - step: *download-repo
       - parallel:
           - step: *run-linter
           - step: *run-unit-test
           - step: *run-other-steps