Skip to content

Commit 35bcc3f

Browse files
AndreyIvanov42Andrey Ivanov
andauthored
updated docs (#853)
Co-authored-by: Andrey Ivanov <[email protected]>
1 parent 333a5f9 commit 35bcc3f

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

node/docs/minagent.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Use the details below to determine when specific agent features were added:
2626
* `node` handler
2727
- Added in 1.95.1. Used node v5.10.1.
2828
- Updated in 2.117.0 to use node v6.10.3.
29+
* `node10` handler
30+
- Added in 2.144.0. Used node v10.x
31+
* `node16` handler
32+
- Added in 2.206.1. Used node v16.x
2933
* `powershell3` handler
3034
- Added in 1.95.1
3135
- Updated in 1.97 to propagate `Data` property for endpoints

node/docs/nodeEnvironment.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ To leverage this capability, simply add `Node10` as an execution target:
1212
},
1313
```
1414

15+
With agent version 2.206.1 Node 16 can be used.
16+
17+
```
18+
"execution": {
19+
"Node16": {
20+
"target": "path/to/entry"
21+
}
22+
},
23+
```
24+
1525
Existing `Node` execution targets will still resolve to a Node 6 environment for now to maintain back-compat.
1626

1727
### Testing your task

node/docs/nodeVersioning.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
## Agent Node Handler
44

5-
The agent currently has 2 different node handlers that it can use to execute node tasks: Node 6 and Node 10.
5+
The agent currently has 3 different node handlers that it can use to execute node tasks: Node 6, Node 10, Node 16.
66
The handler used depends on the `execution` property specified in the tasks `task.json`.
7-
If the `execution` property is specified to be `Node`, the task will run on the Node 6 handler, if it is specified to be `Node10` it will run on the Node 10 handler.
7+
If the `execution` property is specified to be `Node`, the task will run on the Node 6 handler, for `Node10` it will run on the Node 10 handler, for `Node16` it will run on the Node 16 handler.
88

99
## Mock-test Node Handler
1010

1111
[Unit testing](https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#step-2-unit-testing-your-task-scripts) of tasks can be done using the task-lib's built in mock-task functionality.
1212
To ensure tests are run in the same environment as the agent, this library looks for a `task.json` file in the same directory as the supplied task entry point.
1313
If no `task.json` is found it searches all ancestor directories as well.
14-
If the `task.json` is still not found, the library defaults to Node 10, otherwise it uses the appropriate handler based on the `execution` property.
14+
If the `task.json` is still not found, the library defaults to Node 16, otherwise it uses the appropriate handler based on the `execution` property.
1515
If this version of node is not found on the path, the library downloads the appropriate version.
1616

1717
### Behavior overrides

0 commit comments

Comments
 (0)