From 779398f787fac768d2bc0fea1b9970381d40202b Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Mon, 21 Jun 2021 14:54:27 -0700 Subject: [PATCH] Add OfficialBuildId to the global variables If we don't set the official build id then multiple builds of our dotnet packages in a given day will have the same version and cannot be published correctly. This pulls the official build id from the buildnumber which should always be unique. --- eng/pipelines/templates/variables/globals.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index c070312fe81..a3abfb67c59 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -1,4 +1,5 @@ variables: + OfficialBuildId: $(Build.BuildNumber) skipComponentGovernanceDetection: true DotNetCoreVersion: '3.1.405' NugetSecurityAnalysisWarningLevel: 'none'