我正在尝试使用 Azure Pipelines 中的“Amazon S3 上传”任务上传我的所有网站文件,但“assets”文件夹中的所有文件和 JS 映射文件除外。我尝试使用的 glob 模式是
**/!(assets|*.map)
但是我的 Assets 文件夹仍在上传。我认为 glob 模式在 Azure 中的工作方式一定不同,因为在线 glob 测试仪表明这可行。使用 Azure 任务排除文件夹和文件类型的正确语法是什么?
最佳答案
What is the correct syntax for excluding a folder and a file type using an Azure task?
作为该选项的状态:
此选项支持支持多行小型匹配模式。
有一个文件列表matching patterns您可以使用和 some most important rules .
因此,您可以尝试使用以下模式:
**
!**/assets/**
!**/*.map
希望有帮助。
关于azure - Azure Pipelines 中的 Glob 模式用于排除 map 文件和 Assets 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60178181/