0
0
AzureConceptBeginner · 4 min read

Classic Pipeline in Azure DevOps: What It Is and How It Works

A classic pipeline in Azure DevOps is a visual way to create build and release workflows using a drag-and-drop editor without writing code. It helps automate tasks like compiling code, running tests, and deploying apps by arranging predefined steps in a sequence.
⚙️

How It Works

Think of a classic pipeline as a recipe book for your software. Instead of writing the recipe in code, you use a visual editor to pick and arrange steps like mixing ingredients. Each step is a task, such as compiling code or copying files, and the pipeline runs these tasks one after another automatically.

This approach is like following a checklist where you tick off each task in order. The pipeline runs on agents, which are like kitchen helpers that do the actual work. You can see the progress and results in real time, making it easy to track and fix problems.

💻

Example

This example shows a simple classic build pipeline configuration in YAML format, which represents the same steps you would arrange visually in the classic editor.

yaml
trigger:
- main

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '6.x'
- script: dotnet build --configuration Release
  displayName: 'Build project'
- script: dotnet test
  displayName: 'Run tests'
Output
Build and test run successfully on the latest Ubuntu agent.
🎯

When to Use

Use classic pipelines when you prefer a simple, visual way to create and manage your build and release processes without writing code. They are great for beginners or teams that want quick setup with common tasks.

Classic pipelines work well for straightforward projects or when you need to maintain existing pipelines created before YAML pipelines became popular. They are also useful if you want to quickly add tasks from the marketplace using the drag-and-drop interface.

Key Points

  • Classic pipelines use a visual editor to arrange tasks in sequence.
  • They run on agents that execute each task automatically.
  • Ideal for simple or existing workflows without coding pipeline scripts.
  • Supports common build, test, and deploy tasks out of the box.
  • Less flexible than YAML pipelines but easier for beginners.

Key Takeaways

Classic pipelines provide a visual, no-code way to automate build and release tasks in Azure DevOps.
They run tasks step-by-step on agents, making automation easy to track and manage.
Best for simple workflows, beginners, or maintaining older pipelines.
YAML pipelines offer more flexibility but require writing code.
Classic pipelines support many common tasks through drag-and-drop configuration.