Azure-devops-docs: Path filters wildcard support

Created on 25 Mar 2018  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Wildcards are supported in branch filters, but what about path filters? I tried several different path formats, but the only one that works is absolute path. I'd like to be able to exclude all subfolders at certain level. For example:
/folder1/src/tools
/folder2/src/tools
Is it possible to exclude all tools folders with one filter rule? Something like /*/src/tools?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 unspecifiesvc

Most helpful comment

Documentation states otherwise.
Added a comment on the line (https://github.com/MicrosoftDocs/vsts-docs/commit/dd508c92f0cc8aaf7762fc312106966018658a74#r30568581) about this. Not sure if the contributor is notified tho. But in the doc for Path Filters it shows a docs/* suggesting it supports wildcards. I did some tests and unfortunatly it seems it doesn't work. So there is a mismatch between the doc and the feature.

All 3 comments

Thanks for the suggestion. Wildcards are not supported presently in path filters. We will add this to the backlog. You can also post this suggestion on user voice.

Documentation states otherwise.
Added a comment on the line (https://github.com/MicrosoftDocs/vsts-docs/commit/dd508c92f0cc8aaf7762fc312106966018658a74#r30568581) about this. Not sure if the contributor is notified tho. But in the doc for Path Filters it shows a docs/* suggesting it supports wildcards. I did some tests and unfortunatly it seems it doesn't work. So there is a mismatch between the doc and the feature.

I just spent several hours trying to figure out why this would not work in my yml file, just to find this issue that explains the documentation is wrong and has been for years! Why isn't the documentation updated (or better yet, this implemented?)

Was this page helpful?
0 / 5 - 0 ratings