diff --git a/tools/devops/automation/build-pipeline.yml b/tools/devops/automation/build-pipeline.yml index 6d260312d1..8c9079cde9 100644 --- a/tools/devops/automation/build-pipeline.yml +++ b/tools/devops/automation/build-pipeline.yml @@ -36,6 +36,11 @@ parameters: type: boolean default: true +- name: forceInsertion + displayName: Force Insertion + type: boolean + default: false + # We are doing some black magic. We have several templates that # are executed with different parameters. # @@ -254,7 +259,7 @@ stages: enableDotnet: ${{ parameters.enableDotnet }} # .NET 6 Release Prep and VS Insertion Stages, only execute them when the build comes from an official branch and is not a schedule build from OneLoc -- ${{ if and(ne(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}: +- ${{ if and(ne(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), eq(parameters.forceInsertion, true))) }}: - template: templates/release/vs-insertion-prep.yml # Test stages