How to force GitLab to run a complete pipeline before starting a new one?

Suppose I have a job pipeline defined as follow:

  • compile
  • deploy-test-environment
  • test
  • deploy

I have only one runner associated to my project to avoid concurrent build. Is it possible to force GitLab to process the complete pipeline before start a new one?

I only have one test environment therefore, starting a new pipeline after the deploy-test-environment stage can compromise the success and validity of the not yet executed test stage.

@ghilainm I have a similar problem.

Where you able to find a solution?