Trigger parallel: matrix jobs in sequence

Hello all,

I am using a parallel matrix. It triggers all the jobs in parallel as per the matrix in below:

test:
stage: test
script:

  • npm ci
    parallel:
    matrix:
    • OS:
      • windows
      • linux

The pipeline works correct and triggers the jobs parallel correct.
I am interested for the jobs to be triggered one after another in a sequence. First the windows job and then the linux job.

Request to suggest if their is a way.

Replace this template with your information

Gitlab version: gitlab-runner 15.9.1

Nothing tried from documentation related to this.

You should be able to force sequential execution with adding

resource_group: my_matrix_jobs

Then only one can run at a time. However, this may not guarantee a specific order of jobs.