Azure Pipelines 中的全局模式以排除地图文件和资产文件夹
Glob pattern in Azure Pipelines to exclude map files and asset folder
我正在尝试使用 Azure Pipelines 中的 "Amazon S3 Upload" 任务来上传我的所有网站文件,但 "assets" 文件夹中的任何内容和我的 JS 地图文件除外。我尝试使用的 glob 模式是
**/!(assets|*.map)
但我的资产文件夹仍在上传。我认为 glob 模式在 Azure 中必须以不同的方式工作,因为在线 glob 测试器表明这是可行的。使用 Azure 任务排除文件夹和文件类型的正确语法是什么?
What is the correct syntax for excluding a folder and a file type using an Azure task?
作为该选项的状态:
此选项支持支持多行最小匹配模式。
有一个文件列表 matching patterns you can use and some most important rules。
所以,您可以尝试使用以下模式:
**
!**/assets/**
!**/*.map
希望对您有所帮助。
我正在尝试使用 Azure Pipelines 中的 "Amazon S3 Upload" 任务来上传我的所有网站文件,但 "assets" 文件夹中的任何内容和我的 JS 地图文件除外。我尝试使用的 glob 模式是
**/!(assets|*.map)
但我的资产文件夹仍在上传。我认为 glob 模式在 Azure 中必须以不同的方式工作,因为在线 glob 测试器表明这是可行的。使用 Azure 任务排除文件夹和文件类型的正确语法是什么?
What is the correct syntax for excluding a folder and a file type using an Azure task?
作为该选项的状态:
此选项支持支持多行最小匹配模式。
有一个文件列表 matching patterns you can use and some most important rules。
所以,您可以尝试使用以下模式:
**
!**/assets/**
!**/*.map
希望对您有所帮助。