Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArchiveFiles@2 fails due to Node 16 missing #7037

Closed
2 of 10 tasks
Christoba opened this issue Feb 2, 2023 · 2 comments
Closed
2 of 10 tasks

ArchiveFiles@2 fails due to Node 16 missing #7037

Christoba opened this issue Feb 2, 2023 · 2 comments

Comments

@Christoba
Copy link

Description

image

Perhaps related to the upcoming Node JS 18 Announcment, ArchiveFiles@2 failed today with message

##[error]This step requires a node version that does not exist in the agent filesystem. Path: C:\agents\2.214.1\externals\node16\bin\node.exe

This step was running on windows-latest built in agent.

Our workaround entailed bootstrapping Node 16 back onto the agent via:

- task: NodeTool@0
  inputs:
    versionSource: 'spec'
    versionSpec: '16.x' # Required for archive files

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Image: windows-2022
Version: 20230129.1

Is it regression?

No

Expected behavior

ArchiveFiles@2 to work successfully

Actual behavior

##[error]This step requires a node version that does not exist in the agent filesystem. Path: C:\agents\2.214.1\externals\node16\bin\node.exe

Repro steps

Run ArchiveFiles@2

@bogdan-damian-bgd
Copy link
Contributor

Hi @Christoba, we'll take a look on it.

@Alexey-Ayupov
Copy link
Collaborator

Hello @Christoba,
The simplest pipeline with ArchiveFiles@2 task could not reproduce the issue.
Could you please try to run ArchiveFiles@2 task one more time? Or provide exact repro steps.

My pipeline:

pool:
  vmImage: windows-latest

steps:

- task: ArchiveFiles@2
  inputs:
    rootFolderOrFile: '$(System.DefaultWorkingDirectory)/Scripts'
    includeRootFolder: true
    archiveType: 'zip'
    archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
    replaceExistingArchive: true

Agent specification and pipeline result
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants