From bfb93224150d7634403cd0deefc1c08f632f1e32 Mon Sep 17 00:00:00 2001 From: jbeisner Date: Fri, 12 Jan 2018 22:11:15 +0000 Subject: [PATCH] Enabling the publish of assets to 'orchestrated' blob storage. --- build/AzureInfo.props | 37 ++++++++++++-------- build/Publish.targets | 7 ++-- build/publish/AzureInfo.targets | 21 +++++++++++ build/publish/FinishBuild.targets | 1 + build/publish/PublishNupkgToBlobFeed.targets | 2 +- 5 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 build/publish/AzureInfo.targets diff --git a/build/AzureInfo.props b/build/AzureInfo.props index 5ec5c5b86..af0dbe265 100644 --- a/build/AzureInfo.props +++ b/build/AzureInfo.props @@ -1,27 +1,36 @@ - Sdk + True + Sdk + + https://dotnetcli.azureedge.net/dotnet/ - $(PB_AssetRootUrl) + $(PB_AssetRootUrl) $(DefaultCoreSetupBlobRootUrl) $(DefaultCoreSetupBlobRootUrl) $(PB_AssetRootAccessTokenSuffix) ?$(CoreSetupBlobAccessToken) - $(ARTIFACT_STORAGE_CONTAINER) - dotnet - $(ARTIFACT_STORAGE_KEY) + + $(ARTIFACT_STORAGE_ACCOUNT) dotnetcli - https://$(ArtifactCloudDropAccountName).blob.core.windows.net/$(ArtifactContainerName) - $(CHECKSUM_STORAGE_CONTAINER) - dotnet - $(CHECKSUM_STORAGE_KEY) + $(ARTIFACT_STORAGE_CONTAINER) + dotnet + PB_PublishBlobFeedKey) + $(ARTIFACT_STORAGE_KEY) + + $(CHECKSUM_STORAGE_ACCOUNT) dotnetclichecksums - $(BLOBFEED_STORAGE_CONTAINER) - dotnet-core - $(BLOBFEED_EXPECTED_URL) - https://dotnetfeed.blob.core.windows.net/$(BlobFeedContainerName)/index.json - $(BLOBFEED_STORAGE_KEY) + $(CHECKSUM_STORAGE_CONTAINER) + dotnet + PB_PublishBlobFeedKey) + $(CHECKSUM_STORAGE_KEY) + + + $(PB_PublishBlobFeedUrl) + https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json + PB_PublishBlobFeedKey) + $(BLOBFEED_STORAGE_KEY) diff --git a/build/Publish.targets b/build/Publish.targets index 1ab0e0b9e..1c638da1a 100644 --- a/build/Publish.targets +++ b/build/Publish.targets @@ -4,6 +4,7 @@ + @@ -12,6 +13,7 @@ Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' " DependsOnTargets="Init; SetBadgeProps; + SetAzureProps; Package; EvaluateRuntimeCoherence; PublishArtifacts; @@ -21,6 +23,7 @@ Condition=" '$(PUBLISH_TO_AZURE_BLOB)' == 'true' " DependsOnTargets="Init; SetBadgeProps; + SetAzureProps; EvaluateRuntimeCoherence; PublishArtifacts; FinishBuild" /> @@ -52,7 +55,7 @@ - $(Product)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/')) + $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/')) @@ -66,7 +69,7 @@ - $(Product)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/')) + $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/')) diff --git a/build/publish/AzureInfo.targets b/build/publish/AzureInfo.targets new file mode 100644 index 000000000..2d3229b36 --- /dev/null +++ b/build/publish/AzureInfo.targets @@ -0,0 +1,21 @@ + + + + + + + + + + + + %(BlobElements.ContainerName) + %(BlobElements.ContainerName) + %(BlobElements.AccountName) + %(BlobElements.AccountName) + %(BlobElements.BlobPath)/assets + + + + diff --git a/build/publish/FinishBuild.targets b/build/publish/FinishBuild.targets index dfb224431..58e9cbe2f 100644 --- a/build/publish/FinishBuild.targets +++ b/build/publish/FinishBuild.targets @@ -1,6 +1,7 @@ diff --git a/build/publish/PublishNupkgToBlobFeed.targets b/build/publish/PublishNupkgToBlobFeed.targets index eb8ba821a..6a5eaa6eb 100644 --- a/build/publish/PublishNupkgToBlobFeed.targets +++ b/build/publish/PublishNupkgToBlobFeed.targets @@ -7,7 +7,7 @@ - +