From 5c7188b67b79774b21fa36b5a294cf2eddb1a40e Mon Sep 17 00:00:00 2001 From: MilenaHristova Date: Wed, 1 Feb 2023 15:12:20 +0100 Subject: [PATCH] return vmr sync on prs --- .vsts-ci.yml | 18 ++++++++++++++++++ eng/pipelines/vmr-sync.yml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index ef2701cff..1ff68ad69 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -10,6 +10,13 @@ trigger: - internal/release/6.* - internal/release/7.* +resources: + repositories: + - repository: vmr + type: github + name: dotnet/dotnet + endpoint: dotnet + parameters: - name: vmrBranch displayName: dotnet/dotnet branch to push to @@ -372,6 +379,17 @@ stages: vmrBranch: ${{ variables.VmrBranch }} isBuiltFromVmr: false +# In case the VMR Build stage is temporarily disabled, the VMR synchronization step is run to validate +# that the PR can be merged and later synchronized into the VMR without problems. +- ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), parameters.disableVmrBuild) }}: + - stage: Synchronize_VMR + displayName: Synchronize VMR + dependsOn: [] + jobs: + - template: eng/pipelines/templates/jobs/vmr-synchronization.yml + parameters: + vmrBranch: ${{ variables.VmrBranch }} + - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - stage: Publish dependsOn: diff --git a/eng/pipelines/vmr-sync.yml b/eng/pipelines/vmr-sync.yml index 2f0508c60..9a7560950 100644 --- a/eng/pipelines/vmr-sync.yml +++ b/eng/pipelines/vmr-sync.yml @@ -1,9 +1,10 @@ +pr: none + trigger: batch: true branches: include: - main - - master - release/* resources: