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

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

Open
1 of 4 tasks
cwatson-sd opened this issue Mar 26, 2025 · 0 comments

Comments

@cwatson-sd
Copy link

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
@cwatson-sd cwatson-sd added the bug label Mar 26, 2025
@cwatson-sd cwatson-sd changed the title [BUG]: Azure devops task not respecting exclusion filters after build agent upgrade [BUG]: Azure devops task not respecting exclusion filters after build agent upgrade to 4.253.0 Mar 26, 2025
@sanjuyadav24 sanjuyadav24 self-assigned this Mar 27, 2025
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

2 participants