Maria Dorohin
Maria Dorohin

Reputation: 373

What is the best practice to run 2 pipelines on Gitlab

What is the best practice to run 2 pipelines on the same project?

pipeline_1:

pipeline_2:

Can I create 2 pipelines on the same project?

where one scheduled and second on each merge request and part of build jobs are common for both pipelines, but tests jobs are different.

Upvotes: 0

Views: 175

Answers (1)

etusm
etusm

Reputation: 4220

Each "stage" in the .gitlab-ci.yml file is considered a pipeline, so this should just be a matter of adding the correct scripting for each stage.

On pipeline_2, you could set it to a pipeline schedule and make it dependent on the success of pipeline_1. That's what I would do.

Reference: https://docs.gitlab.com/ee/ci/parent_child_pipelines.html

Upvotes: 1

Related Questions