Nov 18 2022
12:13 AM
- last edited on
Mar 05 2024
02:11 PM
by
TechCommunityAP
Nov 18 2022
12:13 AM
- last edited on
Mar 05 2024
02:11 PM
by
TechCommunityAP
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.
Sep 28 2023 08:28 AM
Sep 28 2023 08:55 AM
Okay, answering my own question after some testing. It appears the error in the YAML editor is incorrect. Though it shows the squiggly line, it does indeed validate and execute as expected by simply enclosing it in single quotes: