azure - Azure Pipelines 中的 Glob 模式用于排除 map 文件和 Assets 文件夹

标签 azure azure-pipelines glob azure-pipelines-tasks

我正在尝试使用 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?

作为该选项的状态:

enter image description here

此选项支持支持多行小型匹配模式

有一个文件列表matching patterns您可以使用和 some most important rules .

因此,您可以尝试使用以下模式:

**
!**/assets/**
!**/*.map

希望有帮助。

关于azure - Azure Pipelines 中的 Glob 模式用于排除 map 文件和 Assets 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60178181/

相关文章:

c# - 如何使用 C# Runspace 从本地计算机读取 Azure VM 中存在的远程 yaml 文件

c# - httpTrigger 中的 Blob 绑定(bind)在 VS2017 Azure 函数模板中不起作用

Azure 信号R : HubException method does not exist

git - 如何设置子模块 Azure DevOps

c - C 中的 Glob 函数仅给出一个结果

javascript - 哪个 C 库具有执行 zsh 的递归 glob 的功能?

python - Pyspark 在加载 json 列表时避免 _corrupt_record 列

azure - 从 Azure DevOps 池中删除代理

azure-devops - 如何使用 SSH 获取 VSTS 中的远程 Git 存储库?

Python glob 没有给出结果