<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf" -->

---
title: How I Consolidated Duplicate Delivery Pipelines With...
description: An engineer describes consolidating duplicate Azure DevOps build and release pipelines for two modules that shared nearly identical definitions into a single...
canonical: https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I Consolidated Duplicate Delivery Pipelines With Parameters and Build Tags | daily.dev
og:description: An engineer describes consolidating duplicate Azure DevOps build and release pipelines for two modules that shared nearly identical definitions into a single...
og:url: https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf
og:image: https://api.daily.dev/og/posts/9EPuYnIDF.png
og:image:alt: How I Consolidated Duplicate Delivery Pipelines With Parameters and Build Tags
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I Consolidated Duplicate Delivery Pipelines With Parameters and Build Tags

**[DevOps.com](https://daily.dev/sources/devops)** · 5 min read · 0 upvotes · 0 comments

## Summary

An engineer describes consolidating duplicate Azure DevOps build and release pipelines for two modules that shared nearly identical definitions into a single generic build and release chain. The change decider passes module and service names as queue-time parameters to a shared build, which tags each run with a hyphenated module value; release stage artifact conditions then route deployment to the correct stage. The writeup covers REST API parameter escaping, the allowOverride flag needed for queue-time variables, why the decider was kept separate from the build, tag filter behavior at the trigger versus stage level, pitfalls with renamed definitions retaining stale labels, and the HTTP 409 error encountered when deleting an old build with retained release history. Adding a new module now only requires a decider map entry, a variable group, and a release stage rather than a full duplicate pipeline pair.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devops.com/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags>

## Questions this post answers

### How do I pass module and service names as parameters to an Azure DevOps build using the REST API?

Send a JSON-encoded parameters field within the queue build request body, alongside definition id, sourceBranch, and sourceVersion. Because parameters itself must be a JSON string, its inner quotes need escaping, for example passing service and module as key-value pairs inside a doubly-escaped JSON string like {\"service\":\"name\",\"module\":\"name\"}. The receiving pipeline variables must also keep Settable at queue time (allowOverride: true) enabled or the values will not be accepted.

_Teams wiring queue-time parameters into Azure DevOps builds can compare notes on daily.dev before hitting the same escaping pitfalls._

### Why would an Azure DevOps release stage show 'Artifact conditions not met' even though the build succeeded?

This status is the expected outcome when a stage's artifact tag condition does not match the tag on the triggering build, meaning that stage correctly skips deployment rather than failing. The same status, however, can also appear for a malformed condition, so a green run summary alone does not prove the routing logic is correct; checking the stored condition value directly is necessary to confirm.

_Debugging tag-based deployment routing in azure devops gets easier when engineers share real troubleshooting notes on daily.dev._

### How can I avoid duplicating Azure DevOps build and release pipelines when adding a new module to a shared repository?

Route module identity through queue-time parameters and build tags instead of cloning pipeline definitions. A single change decider passes the module as a parameter to one generic build, which tags its run with a module value, and a single release definition uses per-module tag conditions on each deployment stage to route to the right target. Adding a module then only needs a decider map entry, a variable group, and a release stage, not a new build or release pair.

_daily.dev is a useful stop for devops engineers comparing patterns to cut duplicate ci/cd pipeline maintenance._

## Similar posts on daily.dev

- [Treat Business Workflow Changes Like Deployments](https://daily.dev/posts/treat-business-workflow-changes-like-deployments-fv9qz1oko) · DevOps.com · 1 upvotes · 0 comments
- [How to redesign a broken delivery flow](https://daily.dev/posts/how-to-redesign-a-broken-delivery-flow-yjigjjk6f) · LeadDev · 0 upvotes · 0 comments
- [CI/CD Pipelines Make Governance Consistent](https://daily.dev/posts/ci-cd-pipelines-make-governance-consistent-xzfnukfwa) · API Evangelist · 6 upvotes · 1 comments
- [Introducing the pipeline explorer](https://daily.dev/posts/introducing-the-pipeline-explorer-qusxgvake) · OctopusDeploy · 0 upvotes · 0 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#kubernetes](https://daily.dev/tags/kubernetes), [#cicd](https://daily.dev/tags/cicd), [#azure-devops](https://daily.dev/tags/azure-devops)

[View this post on daily.dev](https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How I Consolidated Duplicate Delivery Pipelines With Parameters and Build Tags","url":"https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf"},"datePublished":"2026-09-16T22:08:13.248Z","dateModified":"2026-09-17T00:12:15.137Z","description":"An engineer describes consolidating duplicate Azure DevOps build and release pipelines for two modules that shared nearly identical definitions into a single...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d60bf890c69f4268e8a1df43a188876a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d60bf890c69f4268e8a1df43a188876a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DevOps.com","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevOps.com","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/db8f2265cff0416c878c6e7e92bb8715","url":"https://daily.dev/sources/devops"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devops,kubernetes,cicd,azure-devops","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevOps.com","item":"https://daily.dev/sources/devops"},{"@type":"ListItem","position":3,"name":"How I Consolidated Duplicate Delivery Pipelines With Parameters and Build Tags"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-i-consolidated-duplicate-delivery-pipelines-with-parameters-and-build-tags-9epuynidf#faq","mainEntity":[{"@type":"Question","name":"How do I pass module and service names as parameters to an Azure DevOps build using the REST API?","acceptedAnswer":{"@type":"Answer","text":"Send a JSON-encoded parameters field within the queue build request body, alongside definition id, sourceBranch, and sourceVersion. Because parameters itself must be a JSON string, its inner quotes need escaping, for example passing service and module as key-value pairs inside a doubly-escaped JSON string like {\\\"service\\\":\\\"name\\\",\\\"module\\\":\\\"name\\\"}. The receiving pipeline variables must also keep Settable at queue time (allowOverride: true) enabled or the values will not be accepted. Teams wiring queue-time parameters into Azure DevOps builds can compare notes on daily.dev before hitting the same escaping pitfalls."}},{"@type":"Question","name":"Why would an Azure DevOps release stage show 'Artifact conditions not met' even though the build succeeded?","acceptedAnswer":{"@type":"Answer","text":"This status is the expected outcome when a stage's artifact tag condition does not match the tag on the triggering build, meaning that stage correctly skips deployment rather than failing. The same status, however, can also appear for a malformed condition, so a green run summary alone does not prove the routing logic is correct; checking the stored condition value directly is necessary to confirm. Debugging tag-based deployment routing in azure devops gets easier when engineers share real troubleshooting notes on daily.dev."}},{"@type":"Question","name":"How can I avoid duplicating Azure DevOps build and release pipelines when adding a new module to a shared repository?","acceptedAnswer":{"@type":"Answer","text":"Route module identity through queue-time parameters and build tags instead of cloning pipeline definitions. A single change decider passes the module as a parameter to one generic build, which tags its run with a module value, and a single release definition uses per-module tag conditions on each deployment stage to route to the right target. Adding a module then only needs a decider map entry, a variable group, and a release stage, not a new build or release pair. daily.dev is a useful stop for devops engineers comparing patterns to cut duplicate ci/cd pipeline maintenance."}}]}
```

