From ba9f249b43ad34d05da4feda734b08ac2b42293e Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Mon, 4 Mar 2019 13:45:39 +0100 Subject: [PATCH 1/4] don't trigger the CI if only a doc file was changed --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d57c35b81f0..04aba6aeedb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,14 @@ resources: # image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921 trigger: -- master + branches: + include: + - master + paths: + include: + - * + exclude: + - *.md # don't trigger the CI if only a doc file was changed pr: - master From 82b2138f242647cb6043ccb9aabe57c51b548f5f Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Mon, 4 Mar 2019 13:49:43 +0100 Subject: [PATCH 2/4] "While scanning an anchor or alias, did not find expected alphabetic or numeric character" --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 04aba6aeedb..07c84ca90b6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,8 +10,6 @@ trigger: include: - master paths: - include: - - * exclude: - *.md # don't trigger the CI if only a doc file was changed From ecca3bed87a5b2810e346a57567a6f74f66bdfca Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Mon, 4 Mar 2019 13:53:01 +0100 Subject: [PATCH 3/4] escape the asterisk --- azure-pipelines.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 07c84ca90b6..cef11ad65a5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,8 +10,9 @@ trigger: include: - master paths: - exclude: - - *.md # don't trigger the CI if only a doc file was changed + exclude: # don't trigger the CI if only a doc file was changed + - docs/* + - '**/*.md' pr: - master From 883e6f0f135a2e12e6d2b674f019d728b78faac5 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Mon, 4 Mar 2019 14:00:06 +0100 Subject: [PATCH 4/4] do it for PRs as well --- azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cef11ad65a5..5c2d1ad2ffb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,6 +5,7 @@ resources: # - container: ubuntu_1604_arm64_cross_container # image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921 +# CI Trigger on master branch trigger: branches: include: @@ -14,8 +15,15 @@ trigger: - docs/* - '**/*.md' +# Trigger builds for PR's targeting master pr: -- master + branches: + include: + - master + paths: + exclude: # don't trigger the CI if only a doc file was changed + - docs/* + - '**/*.md' jobs: