How to escape whitespace in Azure Pipelines include / exclude paths?

New Contributor

Hey,

 

I want to exclude some folders that have whitespace in the name when running the pipeline. I went through this doc File matching patterns reference - Azure Pipelines | Microsoft Learn and I did not find any example. I tried multiple combinations, but none worked.

 

What is the correct syntax to do that for line 10 and 12?

 

trigger:
    branches:
      include:
        - dev
        - main
    paths:
     exclude:
      - Automation
      - Backup/*
      - Disaster Recovery/*
      - Inventory/*
      - security/Access Policies/*
     include:
      - Automation/xyz/*

 

 

Thank you.

0 Replies