I'm working with azure devops, my project is a monorepo contain multiple services host in github.
Every time I make change(s) in one service, I have to build all the others (loop through all folders and build) then push it to fabric.
How can I config azure to build and push only changed project? Here is my solution folder structure
Microservices/
├── Service A/
├── Service B/
└── Service C/
Thanks
Unfortunately, there is no out of the box solution. A workaround is setting up multiple pipelines for Services and triggered by changes in each Service folder. For example:
Microservices/
├── azure-pipelines.yml
├── Service A/
|── azure-pipelines-a.yml
├── Service B/
|── azure-pipelines-b.yml
└── Service C/
|── azure-pipelines-c.yml
And use the path filter to decide which yaml will be triggered. For example:
trigger:
branches:
include:
- master
- releases/*
paths:
include:
- ServiceA/*
In addition, you can use Step templates for the steps used in multiple builds.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.