From c5292aab9078e465abba6b11d18273759cd0e7e8 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Wed, 5 Aug 2020 09:44:21 -0700 Subject: [PATCH] [release/5.0.1xx-preview8] Port Microsoft.DotNet.Sdk.Internal fixes from master (#8105) * Revert "Only publish Microsoft.DotNet.Sdk.Internal once (#8016)" This reverts commit 7e76b75c653b74dd9525bfa7b586a398fa5b4a7d. * Revert "Publish the SDK sentinel package as a package (#8012)" This reverts commit a7cf77dd667e4fd560083bc1acbbe02c60c74b89. * Fix asset manifest file names. Set the asset manifest OS and change the name of the installers manifests. Currently arcade defaults to using OS-Platform as the asset manifest file name. Installer does a ton of building in docker containers, which ends up generating many overlapping names. This is a symptom and also likely hiding some non-determinsm. To fix, change the name of the blob asset manifest name to include a "-installers" suffix. Then alter the property names around a bit so that AssetManifestOS is set prior to publish.proj's publish target being run. --- eng/Publishing.props | 43 +++++++++++++------------------------------ 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/eng/Publishing.props b/eng/Publishing.props index 9999c71ee..99e07962f 100644 --- a/eng/Publishing.props +++ b/eng/Publishing.props @@ -43,18 +43,19 @@ - $(AGENT_OS) - $(OS) - $(AssetManifestFileName)-$(AGENT_JOBNAME) - $(AssetManifestFileName)-$(Architecture) - $(AssetManifestFileName)-checksums - $(AssetManifestFileName)-packages - - $(ArtifactsLogDir)AssetManifest\$(AssetManifestFileName).xml + that exists in the container. Disambiguate the manifests via available properties. + AGENT_OS and AGENT_JOBNAME are present on Azure DevOps agents. AssetManifestOS will also + be used by arcade to generate the name of the manifest file name for the built in publishing. --> + $(AGENT_OS) + $(OS) + $(AssetManifestOS)-$(AGENT_JOBNAME) + $(AssetManifestOS) + $(AssetManifestOS)-$(Architecture) + $(BaseAssetManifestFileName)-installers + $(BaseAssetManifestFileName)-checksums + + $(ArtifactsLogDir)AssetManifest\$(InstallersAssetManifestFileName).xml $(ArtifactsLogDir)AssetManifest\$(ChecksumsAssetManifestFileName).xml - $(ArtifactsLogDir)AssetManifest\$(PackagesManifestFileName).xml $(ArtifactsDir)..\DotnetAssetsTmpDir\$([System.Guid]::NewGuid()) $(ArtifactsDir)..\ChecksumAssetsTmpDir\$([System.Guid]::NewGuid()) @@ -76,7 +77,6 @@ Condition=" '$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64'" /> - @@ -87,7 +87,6 @@ - $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)')) NonShipping=true - - - NonShipping=true - $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)')) @@ -161,7 +156,7 @@ ManifestBranch="$(BUILD_SOURCEBRANCH)" ManifestBuildId="$(BUILD_BUILDNUMBER)" ManifestCommit="$(BUILD_SOURCEVERSION)" - AssetManifestPath="$(DotNetAssetManifestFilePath)" + AssetManifestPath="$(InstallersAssetManifestFilePath)" PublishFlatContainer="true" /> - - -