Azure DevOps Pipelines

Azure Pipelines is a cloud service that you can use to automatically build, test, and deploy your code. It works with the Git repository provider of your choice and can deploy to any cloud or on-premises server.

Key Concepts

Understanding these fundamental concepts will help you get the most out of Azure Pipelines:

Getting Started

Follow these steps to create your first pipeline:

  1. Create a Project: If you don't have one already, create a new project in Azure DevOps.
  2. Connect to Your Repository: Link your pipeline to your source code repository (e.g., Azure Repos Git, GitHub).
  3. Configure Your Pipeline: Define your build, test, and deployment steps using YAML or the classic editor.
  4. Run Your Pipeline: Trigger your pipeline to execute the defined stages and jobs.

For a detailed walkthrough, see the Azure Pipelines Quickstart Guide.

YAML Pipelines

YAML is the recommended way to define your pipelines. It allows you to version your pipeline definitions alongside your application code.

Basic YAML Structure


trigger:
- main

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your code.
    echo You can use predefined tasks or write custom scripts.
  displayName: 'Another script'
            

Classic Editor Pipelines

The classic editor provides a visual interface for building and managing your pipelines. It's a good option for simpler scenarios or when you're new to pipelines.

Learn more about the Classic Editor.

Common Scenarios

Resources