Skip to content

[BUG]: Azure devops task not respecting exclusion filters after build agent upgrade to 4.253.0 #5159

Open
@cwatson-sd

Description

@cwatson-sd

What happened?

After our Microsoft hosted build agent upgraded to 4.253.0, it stopped producing artifacts, and we traced it back to our DeleteFiles task no longer respecting the exclusion filters we added. We found that this was because the paths being constructed were adding a "." to the beginning of the exclusion paths.

For exact description of issue see this issue we opened in the azure-pipelines-tasks repo.

We believe it is because of the upgrade to Node 20 in 4.253.0 that included this change: nodejs/node@42d5821873?diff=split#diff-092f2be30e312ebf7517f3d5f08b4c8d38a4bea3449ab15eb87f408a8f301dff

Versions

Current agent version: '4.253.0'
Operating System
Microsoft Windows Server 2022
10.0.20348

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2022

Version controll system

git

Relevant log output

*These are also included in issue linked above:

Contents output:
##[debug]Contents=**/*
!favicon.png
!lib/DownloadManager/**/*
!lib/EtrieveFileAgent/**/*

patterns output:
##[debug]patterns: D:\a\1\s\Content\Projects\Source\Web\_Site\ui\**\*,.\!D:\a\1\s\Content\Projects\Source\Web\_Site\ui\favicon.png,.\!D:\a\1\s\Content\Projects\Source\Web\_Site\ui\lib\DownloadManager\**\*,.\!D:\a\1\s\Content\Projects\Source\Web\_Site\ui\lib\EtrieveFileAgent\**\*

example of pattern search:
##[debug]pattern: '.\!D:\a\1\s\Content\Projects\Source\Web\_Site\ui\favicon.png'
##[debug]expanding braces
##[debug]pattern: './!D:/a/1/s/Content/Projects/Source/Web/_Site/ui/favicon.png'
##[debug]applying include pattern against original list
##[debug]0 matches

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions