Azure/azure-devtestlab

Node 6 deprecation warning

Opened this issue · 3 comments

Getting this warning in Azure Devops pipeline when using the Create Image Source VM task (version 3,0.17):

This task uses Node 6 execution handler, which will be deprecated soon. If you are the developer of the task - please consider the migration guideline to Node 10 handler - https://aka.ms/migrateTaskNode10. If you are the user - feel free to reach out to the owners of this task to proceed on migration.

Alos see this in the task log:
(node:7024) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

@DanBrown-TechSmith, looking at the tasks definitions, I see we're using, or at least requesting, the use of Node 10. Can you double check this is not something in the build agent that is used, where it is defaulting to use Node 6?

"execution": {
    "Node10": {
        "target": "task.js"
    }
}

The pipeline in question is running on hosted agents (windows-2019 image) so I am not sure what Node version they default to.

I do see that the azure-pipelines-task-lib version is less than specified in step 3 of the migration instructions.

"azure-pipelines-task-lib": "^3.1.2",