Relative Content

Tag Archive for azure-devopsazure-pipelines-yaml

How to deploy files to a server

I have a very basic requirement: deploy files (could be .NET binaries, configuration, assets…) to an on-premise server, using an Azure DevOps YAML pipeline.

Dynamically populate DependsOn in Azure DevOps Yaml job

YAML pipelines do not support pre- and post-deploy approvals that can be dynamically added. I’ve found a way of partially achieving this, see final update to my previous SO question. In summary; I created a YAML template that has 3 jobs; the first and last jobs are conditional jobs that use a ManualValidation@0 depending on a variable in a variable group, and the second job is the actual deployment of a web application.

Pre-deploy approvals in Azure Devops YAML pipeline

The company I’m at is investigating whether we can migrate from classic Azure DevOps Builds and Releases towards YAML Pipelines. Using these pipelines we want to deploy to four four different environments (dev, test, acc, prod). On a regular basis we need to validate a feature that has not made it into the main branch, i.e. we deploy a feature branch to dev and/or test. Whenever the main branch is updated, the latest version of main is automatically deployed to dev and test, which is problematic when we’re in the process of testing the feature branch. Our solution with the classic pipelines is to temporary add a pre-deploy approval.

Batching Multistage Pipelines – Azure DevOps

At my job, we recently converted some pipelines to be “all-in-one.” So when a merge to main happens, the pipeline has multiple stages for building –> deploy to lower environments –> deploy to production. The production deployment requires manual approval. As a result, builds will often sit at this stage as we only deploy on a certain cadence.