In this post, we will be discussing how to import and export CI pipelines from the azure DevOps portal. If you have a build pipeline in Azure DevOps you can import and export it from Azure DevOps Portal in a JSON file.

Pre-requisites

  1. Azure DevOps Account
  2. Build Pipeline

How to Export Build Pipeline

  1. For Exporting Build Pipeline first, log in to Azure DevOps Portal from here https://dev.azure.com/
  2. Select the organization and project from which you want to export Build Pipeline and go to the pipelines.
  3. Click on the 3-dots-menu icon from the right-side menu. From the list of options, select Export.

You can Export Build Pipeline to JSON format or to YAML Format

How to Import Build Pipeline

  1. For Importing Build Pipeline first, log in to Azure DevOps Portal from here https://dev.azure.com/
  2. Select the organization and project in which you want to import Build Pipeline and go to the pipelines.
  3. Click on the 3-dots-menu icon from the right-side menu. From the list of options, select import a pipeline

4. Upload your JSON file or browse the path where your JSON file exists.

YAML File cannot be imported into the build pipeline otherwise it will show a JSON error

Categories: AzureDevOps

error: Content is protected !!
%d bloggers like this: