From e737d990e93bd55697b60f5a075e1edf8cd1134b Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 15 Jan 2020 10:18:02 -0600 Subject: [PATCH] update pipeline to only build on merge into release branches or (now previous standard 2.4-pr) --- azure-pipelines.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 809f160b5..961251466 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,8 +3,15 @@ # Add steps that publish symbols, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 -trigger: -- '2.4-pr' +pr: + branches: + include: + - releases/* + - 2.4-pr + paths: + exclude: + - azure-pipelines.yml + - Master/* pool: vmImage: 'windows-latest' @@ -150,7 +157,7 @@ steps: targetType: 'inline' script: | $payload = @{ - 'current-version-prerelease' = '$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0' + 'current-version-prerelease' = '$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).$(Build.BuildId)' 'jwt-secret' = '$(JWTSecret)' } | ConvertTo-Json