Answer the question
In order to leave comments, you need to log in
How to run multiple stages at the same time?
Good afternoon, tell me, please, how can I run several stages at the same time / in parallel?
For example, there are the following stages
Answer the question
In order to leave comments, you need to log in
Stages seem to be in no way, only jobs,
although it can shaman with needs
https://docs.gitlab.com/ee/ci/yaml/#needs
There are two options for the development of events: you distribute the execution sequence by stages or draw your own execution graph.
In the first case, the sequence of stages is important - jobs are parallel within one stage and the next stage will not start until all the previous jobs are completed.
.pre is always run before user stages.
In the second, you can schedule your execution graph with needs
I didn't find in the documentation that .pre will still be executed first if its jobs are in your own graph, so this might be a solution. In the case of using needs (and gitlab 14.2+ or gitlab.com 14.1), you can not prescribe stages at all. In the case of gitlab <=14.0, stages are still needed because needs won't work with jobs of the same stage.
Read carefully the requirements https://docs.gitlab.com/ee/ci/yaml/#requirements-a... according to your version of gitlab
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question