You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extend/develop/add-build-task.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ customer-intent: As a developer, I want to create custom build and release tasks
19
19
20
20
This guide walks you through creating, testing, and publishing custom build or release tasks as Azure DevOps extensions. Custom pipeline tasks let you extend Azure DevOps with specialized functionality tailored to your team's workflows, from simple utilities to complex integrations with external systems.
21
21
22
-
You learn how to:
22
+
Learn how to do the following tasks:
23
23
- Set up the development environment and project structure
24
24
- Create task logic using TypeScript and the Azure Pipelines Task Library
25
25
- Implement comprehensive unit testing with mock frameworks
@@ -96,8 +96,8 @@ Create the basic project structure and install required dependencies:
96
96
97
97
The `package.json` file gets created with default settings. The `--yes` flag accepts all default options automatically.
98
98
99
-
> [!TIP]
100
-
> Azure Pipelines agents expect task folders to include node modules. Copy `node_modules` to your `buildandreleasetask` folder. To manage VSIX file size (50-MB limit), consider running `npm install --production` or `npm prune --production` before packaging.
99
+
> [!TIP]
100
+
> Azure Pipelines agents expect task folders to include node modules. Copy `node_modules` to your `buildandreleasetask` folder. To manage VSIX file size (50-MB limit), consider running `npm install --production` or `npm prune --production` before packaging.
101
101
102
102
2. Install the Azure Pipelines Task Library:
103
103
@@ -346,12 +346,12 @@ Before packaging, test your task to ensure it works correctly:
346
346
347
347
This action should trigger the error handling path in your code.
348
348
349
-
> [!TIP]
350
-
> For information about task runners and Node.js versions, see [Node runner update guidance](https://devblogs.microsoft.com/devops/node-runner-update-guidance-for-azure-pipelines-task-authors/#upcoming-changes).
349
+
> [!TIP]
350
+
> For information about task runners and Node.js versions, see [Node runner update guidance](https://devblogs.microsoft.com/devops/node-runner-update-guidance-for-azure-pipelines-task-authors/#upcoming-changes).
351
351
352
352
For more information, see the [Build/release task reference](./integrate-build-task.md).
353
353
354
-
## Step 2: Implement comprehensive unit testing
354
+
## 2. Implement comprehensive unit testing
355
355
356
356
Testing your task thoroughly ensures reliability and helps catch issues before deployment to production pipelines.
357
357
@@ -527,8 +527,8 @@ The extension manifest (`vss-extension.json`) contains all information about you
-**AzureDevOpsExtensionTasks**: [Installtheextension](https://marketplace.visualstudio.com/items?itemName=ms-devlabs.vsts-developer-tools-build-tasks) for free
0 commit comments