Search code examples
gitlabgitlab-ci

Defining parallel sequences of jobs in GitLab CI


In my gitlab-ci.yml file, I have defined 3 stages, and the 2nd and 3rd stages have 3 jobs each, resulting in the following structure:

My current setup in GitLab

The 1st and 2nd stage works as I intended, however, for the 3rd stage what I'd actually like to have is something like this (the image is a mockup of course), i.e. "parallel sequences" of jobs if you will:

Mockup of the setup I'd like to achieve

That is, I want "deploy-b" to start if "build-b" is done, and not waiting for the other build tasks to complete.

Is that possible with GitLab pipelines? (Apart from the obvious solution of defining just 2 stages, the second being "Build-and-Deploy", where I just "merge" the script steps of the current build-* and deploy-* jobs.)


Solution

  • This feature was added in the new GitLab release (v12.2)

    Updated link is: