Saturday, November 30, 2019

Reusing Steps in Azure DevOps Build Pipelines with YAML Templates

Azure DevOps allows us to create yaml build pipelines. If you use yaml build pipelines you may have realized, there are repetitive steps which can be reused in multiple build pipelines. You can create a yaml template with include all the repetitive steps and reuse that template with in other yaml file which defines a build pipelines. This post will explain how to create a yaml template and use it in a pipeline.

Following is the yaml script which doesn't use templates. It has all the steps in the same yaml file which makes a script not manageable.

Saturday, November 16, 2019

Resolving "user lacks permissions" in NuGet push task of Azure Pipelines

This post will discuss the issue you might get when trying to push the nuget package to the Azure DevOps Artifact feed using the build pipeline.

pre requisites: Azure DevOps arifacts feed
Let’s get started.
  • You can implement the build pipeline to pack and push the nuget package to the the Azure DevOps nuget feed as explained in this post.Using NuGet Packages as Azure DevOps Artifacts Once you configured the build pipeline, it will look as follows.

Friday, November 8, 2019

Setting up Multiple YAML Builds in the Same Azure Git Repo With Path Filters

Azure DevOps has mainly two ways of creating build definitions to build your code. You can use either classic editor or YAML scripts to create a build. You can write YAML scripts to create various types of builds according to your project requirements. This blog post explains how to write YAML scripts to setting up different YAML builds in the same repo.

Pre-requisites : Azure DevOps project with multiple solutions in the same repo

Let's get started.