MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

PostBuildCleanup is not compatible with new Pipeline Agents 3.x.x #233

Closed HeikeHofmann closed 3 months ago

HeikeHofmann commented 3 months ago

Since release of the new self-hosted Pipeline Agents 3.x.x, which is the default version since Azure DevOps Server 2020 Patch 8 and Azure DevOps Server 2022 Patch 5, the Task PostBuildCleanup Job is not working anymore.

Error Message: This step requires a node version that does not exist in the agent filesystem. Path: \externals\node\bin\node.exe

Reason: The directory \externals\node doesn't exist anymore.

Directories of Agent Version 2.213.2: \externals\node \externals\node10 \externals\node16

Directories of Agent Version 3.225.3: \externals\node10 \externals\node16 \externals\node20

Expected behavior:

ReneSchumacher commented 3 months ago

Hi @HeikeHofmann,

sorry for not updating the task earlier. A new version is on the way, which supports Node 10, 16, and 20. We have also updated the documentation with instructions on how to replace our task with a PowerShell step. Since PBC is not fully compatible with YAML pipelines (and never will be), moving to a custom solution will be the better long-term approach.