skills/azure-devops/azure-devops-pipelines/SKILL.md
Guides Azure Pipelines YAML structure, build validation on PRs, and staged deployment with environments and approvals. Use when authoring azure-pipelines.yml or configuring CI/CD on Azure DevOps.
npx skillsauth add pkuppens/pkuppens azure-devops-pipelinesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Defines CI/CD patterns for Azure Pipelines aligned with the agnostic workflow.
azure-pipelines.ymlmain; production requires approval.trigger:
branches:
include:
- main
pr:
branches:
include:
- main
pool:
vmImage: ubuntu-latest
stages:
- stage: Validate
jobs:
- job: QualityGate
steps:
- checkout: self
- task: UsePythonVersion@0
inputs:
versionSpec: "3.12"
- script: |
pip install uv
uv sync --group dev
uv run ruff check .
uv run pytest
displayName: Lint and test
- stage: DeployStaging
dependsOn: Validate
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
jobs:
- deployment: Staging
environment: staging
strategy:
runOnce:
deploy:
steps:
- script: echo "Deploy to staging"
displayName: Deploy staging
- stage: DeployProduction
dependsOn: DeployStaging
jobs:
- deployment: Production
environment: production # configure approval check in ADO UI
strategy:
runOnce:
deploy:
steps:
- script: echo "Deploy to production"
displayName: Deploy production
Link a pipeline to a branch policy so PRs cannot merge until the build succeeds. See azure-devops-repos for az repos policy build create.
Store credentials (container registry, cloud subscription, package feed) as service connections in Project Settings → Service connections. Reference them in YAML:
- task: Docker@2
inputs:
containerRegistry: my-acr-connection
command: buildAndPush
az pipelines runs list --pipeline-ids 12 --top 50
az pipelines runs delete --id 98765
Delete failed or stale runs periodically to reduce noise.
docs/workflow/README.mdtools
Creates, queries, updates, and links Azure Boards work items via az boards CLI. Use when filing ADO work items, running WIQL queries, or setting area path, iteration, tags, and assignee.
tools
Creates, reviews, and completes Azure Repos pull requests and branch policies via az repos CLI. Use when opening ADO PRs, setting required reviewers, or configuring build validation policies.
tools
Orchestrates Azure DevOps work item, repo, and pipeline workflows using az CLI. Use when working with Azure DevOps, Azure Repos, Azure Boards, Azure Pipelines, or az devops commands.
development
Documents quality tree and quality scenarios; maps to requirements (arc42 §10). Use when defining non-functional goals, scenarios, or acceptance of quality attributes.