A good delivery pipeline makes deploying ordinary. The developer merges, the pipeline builds, tests, packages and publishes, and everyone knows which version is in each environment. We use Azure DevOps for this for business clients.
Pipelines in YAML
The pipeline is code. It lives in the repository, is reviewed like any change and has history. Typical stages:
- Build. Dependency restore with cache, compilation and automatic semantic versioning.
- Tests. Unit and integration tests with services in containers, and published coverage. A failed test stops the pipeline.
- Analysis. Static analysis, dependency scanning and image scanning.
- Package. A container image with an immutable tag, pushed to the registry.
- Deploy. Publishing per environment, with Helm on Kubernetes or direct publishing to managed services.
Templates and reuse
With dozens of repositories, copying YAML becomes debt. We create templates in a central repository: a .NET build stage, an Angular stage, an image stage and a Helm deploy stage. Each service references the templates and passes parameters. A fix in the template reaches every pipeline. This standardization is what allows the thirtieth service to go live in an afternoon.
Environments, approvals and checks
We use Azure DevOps environments for development, staging and production.
- Approvals. Production requires approval from defined people.
- Windows. Releases only at times agreed with operations.
- Automated checks. A query to smoke tests, a monitoring alert or a change ticket before releasing.
- Promotion of the same artifact. The image built once moves through all environments. What was tested is what goes to production.
Variables live in groups per environment and secrets in a vault, with access through a service identity.
Deploy strategies
Rolling update as the default, with health probes. Blue-green when the switch has to be instant. Canary to release to a fraction of traffic and watch metrics before expanding. The pipeline rolls back automatically when smoke tests fail. See the runtime base in Kubernetes experts.
Quality and branch policy
Mandatory pull requests, with peer review, a green build and passing tests before merge. Automatic reviewers per code area. Commit messages linked to work items, to trace every change back to the request that originated it. In projects with AI agents, the branch policy prevents any generated change from entering without senior review.
Boards, repositories and artifacts
Azure DevOps brings together task boards, repositories, pipelines and package feeds. When the client already uses the suite, we keep everything in one place, with traceability from work item to deploy. When it uses another repository platform, the same concepts apply and we adapt the pipelines.
Delivery metrics
We track deploy frequency, lead time from commit to production, change failure rate and time to recovery. These indicators show whether the pipeline helps or hurts, and guide the next adjustment.
Working with a Brazilian team
Our engineers are based in Brazil, in time zones that overlap with the US working day, and we communicate in English.
How we deliver in weeks
- Our own boilerplates. Pipeline templates, Helm charts and environments ready for .NET, Angular, Flutter and containers.
- AI agents with senior review. Agents write and review YAML, and a senior engineer approves.
- The same team from assessment to deploy. The person who maps the current pipeline builds the new one.
- Fixed scope after the assessment. The free assessment lists the repositories, defines the migration order and the timeline in weeks.
Common mistakes we fix
A pipeline that rebuilds for each environment. The production binary stops being the one that was tested. We build once and promote the artifact.
Scattered variables. Values spread over dozens of pipelines become a source of errors. We centralize them in groups per environment and in Helm values files.
Slow tests. A one-hour pipeline discourages frequent merges. We parallelize, use caching and separate fast tests from slow ones, which run in a stage of their own.
Unmaintained build agents. We prefer hosted agents when possible and versioned agent images when we need our own.
No rollback. Every deploy has a tested way back, with the previous version available and the database compatible with both versions during the switch window.
Database in the pipeline
Database migrations enter the pipeline as a stage of their own, validated in staging before production. We follow the expand and contract pattern: first the change compatible with the old version, then the code deploy, then the cleanup. That way a code rollback does not break the database. See SQL Server consulting.
Governance
Permissions by role, an audit of who approved each release and retention of pipeline logs. These records help in audits and incident investigation.
Related
This work is part of our Kubernetes and DevOps consulting. For the .NET base the pipeline publishes, see .NET development. Request the free assessment.