'Is it possible for two artifacts to trigger a pipeline, but only part of it?
Let's say I have something a release pipeline like this (image lifted from a similar question on Microsoft Dev forums):
Both master and hotfix builds trigger the pipeline, but I want master to only trigger the top row and hotfix to only trigger the bottom row. Microsoft responded to that post and said have two completely separate pipelines, one for master and one for hotfix. I want them both on a single screen because they are inter-related.
I tried artifact filters, but that doesn't have that behavior which the OP on the Microsoft forums complained about lol.
Any idea on how to do that in a single pipeline? I did set it to only drop the master artifacts on the top row and only the hotfix artifacts on the bottom row, but would like it to not even deploy if the corresponding artifact hasn't changed.
EDIT: I did mention the image was lifted from a similar post on the Microsoft forum :). I didn't feel like VPNing in to get an actual screenshot of my pipeline when it is identical conceptually.
Let's assume that the top row is APP TIER and the bottom row is WEB TIER. I want a single "control panel" for deployments, but it doesn't make sense to deploy the WEB TIER if only the APP TIER has changed and vice versa.
I'd probably prefer the unified pipeline and deploy everything over two completely separate ones that work as I want for management headaches.
P.S. we're not a CD shop, more like 2 week sprints.
I'm kind of envisioning I'd need to save the last release numbers somewhere and write a function to check if they have changed, etc.
Solution 1:[1]
Is it possible for two artifacts to trigger a pipeline, but only part of it?
For this issue ,I am afraid that it is currently not supported in azure devops. If you want different artifacts to trigger the deployment of different rows of stages respectively, it is better to create two pipelines, set the artifact in each pipeline to trigger the deployment on the required stages.
If you think that two artifacts only trigger a part of the pipeline is necessary, you could submit a feature request in our Develop Community site. Our PM and product team will kindly review your suggestion.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Leo Liu-MSFT |

