MCPcopy
hub / github.com/microsoft/azure-pipelines-tasks

github.com/microsoft/azure-pipelines-tasks @main sqlite

repository ↗ · DeepWiki ↗
11,141 symbols 40,895 edges 3,182 files 859 documented · 8%
README

Azure Pipelines Tasks

Tasks

Overview

This repo contains the tasks that are provided out-of-the-box with Azure Pipelines and Team Foundation Server.

This provides open examples on how we write tasks which will help you write other tasks which can be uploaded to your account or server. See Writing Tasks below. Check Deprecation.md file for the list of task which are no longer supported.

Status

Build & Test
Win Windows Build & Test
macOS macOS Build & Test
Linux Linux Build & Test

How to Use Tasks

See the documentation for Continuous integration and deployment.

Writing Tasks

If you need custom functionality in your build/release, it is usually simpler to use the existing script running tasks such as the PowerShell or Bash tasks. Writing a new task may be appropriate if you need deeper integration or reusability in many build definitions

Tasks are simply tool runners. They know how to run MSBuild, VSTest, etc... in a first class way and handle return codes, how to treat std/err out, and how to write timeline records based on expected output. They also get access to credentials to write back to TFS/Azure Pipelines.

For uploading custom tasks to Azure Pipelines use the TFS Cross Platform Command Line utility.

Tasks can also be deployed with an Azure DevOps extension. See this tutorial for how to write a custom task and package it inside an extension.

Contributing

This project welcomes contributions and suggestions.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Issues

We accept issue reports both here (file a GitHub issue) and in Developer Community.

Do you think there might be a security issue? Have you been phished or identified a security vulnerability? Please don't report it here - let us know by sending an email to secure@microsoft.com.

Deprecated Tasks

Some tasks in this repository have been deprecated and are no longer actively maintained. Deprecated tasks will display a warning banner when used in pipelines, and will be removed after a 90-day notice period.

If you are using a deprecated task, please migrate to the recommended replacement task as soon as possible to avoid disruption to your pipelines.

For a complete list of deprecated tasks, their deprecation dates, and migration guidance, see DEPRECATION.md.

Common reasons for deprecation:

  • Retired Azure services - The underlying Azure service has been retired or replaced
  • Security improvements - Newer versions use more secure authentication methods (e.g., Workload Identity Federation)
  • Outdated dependencies - The task uses deprecated tools or libraries (e.g., older versions of AzCopy, PowerShell modules)
  • Better alternatives available - Superseded by newer task versions with improved functionality

Extension points exported contracts — how you extend this code

Cookie (Interface)
(no doc) [10 implementers]
definitions/request.d.ts
FSWatcher (Interface)
(no doc) [8 implementers]
definitions/node.d.ts
ICodeCoverageEnablerFactory (Interface)
(no doc) [29 implementers]
definitions/codecoveragefactory.d.ts
FSWatcher (Interface)
(no doc) [8 implementers]
Tests-Legacy/definitions/node.d.ts
IWebAppDeploymentProvider (Interface)
(no doc) [10 implementers]
Tasks/AzureFunctionAppV1/deploymentProvider/IWebAppDeploymentProvider.ts
IWebAppDeploymentProvider (Interface)
(no doc) [10 implementers]
Tasks/AzureWebAppV1/deploymentProvider/IWebAppDeploymentProvider.ts
ITestExecutor (Interface)
(no doc) [10 implementers]
Tasks/AzureTestPlanV0/Interface/ITestExecutor.ts
IWebAppDeploymentProvider (Interface)
(no doc) [10 implementers]
Tasks/AzureFunctionAppV2/deploymentProvider/IWebAppDeploymentProvider.ts

Core symbols most depended-on inside this repo

assert
called by 8472
make-util.js
setInput
called by 7935
Tests-Legacy/lib/taskRunner.ts
log
called by 4777
definitions/glob.d.ts
loc
called by 3934
Tasks/NpmV1/Tests/L0.ts
debug
called by 3523
definitions/minimatch.d.ts
run
called by 2300
Tests-Legacy/definitions/mocha.d.ts
getInput
called by 1909
Tasks/BicepDeployV0/taskIO.ts
getVariable
called by 1842
Tasks/NpmV1/Tests/L0.ts

Shape

Method 4,987
Function 3,176
Class 1,891
Interface 924
Enum 163

Languages

TypeScript100%
Java1%
Python1%

Modules by API surface

definitions/vso-node-api.d.ts1,486 symbols
definitions/node.d.ts266 symbols
Tests-Legacy/definitions/node.d.ts266 symbols
Tests-Legacy/lib/vsts-task-lib/task.ts84 symbols
make-util.js66 symbols
definitions/request.d.ts62 symbols
definitions/string.d.ts54 symbols
definitions/nuget-task-common.d.ts51 symbols
Tasks/GitHubReleaseV1/operations/Utility.ts46 symbols
Tasks/GitHubReleaseV0/operations/Utility.ts46 symbols
Tasks/AzureResourceGroupDeploymentV2/operations/ResourceGroup.ts38 symbols
definitions/Q.d.ts35 symbols

Dependencies from manifests, versioned

@azure/app-configuration1.5.0 · 1×
@azure/app-configuration-importer-file-source1.1.2-preview · 1×
@azure/bicep-deploy-common0.0.6 · 1×
@azure/core-http3.0.5 · 1×
@azure/core-paging1.1.3 · 1×
@azure/identity4.13.1 · 1×
@azure/keyvault-secrets4.7.0 · 1×
@azure/logger1.0.0 · 1×
@azure/msal-node2.7.0 · 1×
@azure/storage-blob12.17.0 · 1×
@azure/storage-file-share12.3.0 · 1×
@octokit/rest16.43.2 · 1×

For agents

$ claude mcp add azure-pipelines-tasks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact