Running other project stage

So I have 3 projects:

  • Project 1 that do stuff with stages:
    • test
    • build docker
    • deploy docker
  • Project 2 that do other stuff with stages:
    • test
    • build docker
    • deploy docker
  • Project 3 that is the database configuration used by Project 1 and Project 2.

When I push Project 3, I would like to run both Project 1 & Project 2 test stage with the new configuration on the Project 3 pipeline.

How can I tell Project 3 to validate the tests ONLY if the tests with the new pushed configuration of Project 1 and Project 2 succeed ?

I looked at multi-project pipelines but it triggers the test on the other projects branches, which i don’t want.

Thanks !

You can try using git submodules, and then include the config file from the submodule repo

Hey @aljaxus, thank you for your answer. Not sure how git submodules would help here. Can you elaborate ?

Sorry, I misunderstood your problem. My reply is invalid.

@aljaxus I’m not sure if this is the best solution, but in pipelines 1 and 2 you can use only and except to filter on jobs pushed from pipelines which is recommended for multi-project pipelines.

So you could create new test jobs and add:


  • pipelines

1 Like