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
It's not clear which version of the node is supported by the azure-pipelines-task-lib
From reading this microsoft documentation I understand that only task node 10 runner is guaranteed to be present on the agent. Which means that in order for the task and task tests to run successfully, the task.json execution must be set to Node10 and so the task and it's tests must only use functionality provided in node version 10. Also other dependencies of the task, such as typescript @types/node should be of version 10 and the tsconfig.json should be for node version 10.
On the other hand, the task.jsonschema allows to use execution Node16, although task node 16 runner is not available on the agents.
So my question is what version of node corresponds to which version of the azure-pipelines-task-lib library? How do I install or request task node 16 runner on an agent?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi @gusega, thank you for the question and sorry for the inconvenience. We'll try to improve the docs for better understanding.
Answering your questions, the Node16 runner was introduced in the agent in version 2.206.1 and new node20 runner was introduced in 3.225.0 so all agent with higher version supports the runners.
For the task-lib, node16 support was introduced with the major version 4 so all task-lib 4.x versions are compatible with it, for node 20 runner we're preparing the node 20 support and it will be task-lib version 5.x, but you can use task-lib 4.x with node 20 runners for now, as it uses in some in-the-box tasks
What also might be helpful is to emphasize that node runner used to run tasks is bundled in the agent version and to run tasks with node version X handler, the minimum agent version should be set in the task.json.
Dear maintainers,
It's not clear which version of the node is supported by the azure-pipelines-task-lib
From reading this microsoft documentation I understand that only task node 10 runner is guaranteed to be present on the agent. Which means that in order for the task and task tests to run successfully, the
task.json
execution must be set toNode10
and so the task and it's tests must only use functionality provided in node version 10. Also other dependencies of the task, such as typescript@types/node
should be of version 10 and thetsconfig.json
should be for node version 10.On the other hand, the
task.json
schema allows to use executionNode16
, although task node 16 runner is not available on the agents.So my question is what version of node corresponds to which version of the azure-pipelines-task-lib library? How do I install or request task node 16 runner on an agent?
Thanks.
The text was updated successfully, but these errors were encountered: