Is there a way that downstream project can monitor upstream project build and only then it should build itself in multiproject pipeline

Viewed 64

For implementing multi project pipeline in gitlab, E.g the project structure is -

common-lib->deployment-lib->Microservice1 Microservice2 MicroserviceN Incase of N no. of microservices, it would be tedious to update gitlab-ci.yaml file of common-lib. So, the better way is to only build the services whenever the common-lib is built. Is there a way in multi project pipeline, that I can restrict the trigger present in deployment-lib to start only if common-lib is built. Also, any better suggestions for avoiding redundant builds of unnecessary microservices since the count is high.

1 Answers
Related