microsoft / azure-pipelines-terraform

Azure Pipelines tasks for installing Terraform and running Terraform commands in a build or release pipeline.
MIT License
95 stars 59 forks source link

Upgrade Node10 executor to Node16 #221

Closed phynot closed 1 month ago

phynot commented 1 month ago

Microsoft has begun to remove Node10 from pipelines-* Agent packages

https://learn.microsoft.com/en-us/azure/devops/release-notes/2024/pipelines/sprint-238-update#node-10-removed-from-pipelines--agent-packages

This is the same issue as https://github.com/jason-johnson/azure-pipelines-tasks-terraform/issues/430

https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/migrateNode16.md

mericstam commented 1 month ago

Do you use v4 of the task? what error do you get? we implemented support for node 16 already.

phynot commented 1 month ago

Thanks @mericstam for the prompt reply. I did not realize this work was done in https://github.com/microsoft/azure-pipelines-terraform/pull/130

FYI this was the error I was receiving on TerraformTaskV3@3

##[error]This step requires a node version that does not exist in the agent filesystem. Path: /agent/externals/node10/bin/node

After swapping to TerraformTaskV4@4 I'm good to go.