https://github.com/andrebriggs/az-conditional-builds
https://github.com/andrebriggs/az-conditional-builds
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrebriggs/az-conditional-builds
- Owner: andrebriggs
- Created: 2019-07-20T01:58:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T21:50:16.000Z (almost 7 years ago)
- Last Synced: 2025-01-15T07:12:20.787Z (over 1 year ago)
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing Azure Pipelines Conditional Builds
[](https://dev.azure.com/abrig/bedrock_gitops/_build/latest?definitionId=8&branchName=master)
Following instructions at [https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#triggers](https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#triggers)
The top level azure-pipeline.yaml has
```
trigger:
branches:
include:
- master
paths:
include:
- bar/foo/*
exclude:
- '**/*.md'
```
- So that means only changes under bar\foo should trigger a build
- We have confirmed this
- We also added an exclusion on all Markdown files via `'**/*.md'`
- This has no effect. Builds still happen.
- The bug is [here](https://github.com/MicrosoftDocs/vsts-docs/issues/2363)
Let's get more complicated though. We want to:
* Run a test only when one or more directories are changed