From d88546e523d534c77d59c06027f1aecb64de6ca8 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Wed, 22 Jun 2016 21:47:42 -0500 Subject: [PATCH] Fix the FinalizeBuild publish artifacts. There was a mix-up in the trailing slashes, causing assets to go into an unnamed folder. --- build_projects/dotnet-cli-build/PublishTargets.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_projects/dotnet-cli-build/PublishTargets.cs b/build_projects/dotnet-cli-build/PublishTargets.cs index a70a4b61e..e72e2d037 100644 --- a/build_projects/dotnet-cli-build/PublishTargets.cs +++ b/build_projects/dotnet-cli-build/PublishTargets.cs @@ -51,8 +51,8 @@ namespace Microsoft.DotNet.Cli.Build { if (CheckIfAllBuildsHavePublished()) { - string targetContainer = $"{AzurePublisher.Product.Sdk}/{Channel}/"; - string targetVersionFile = $"{targetContainer}{CommitHash}"; + string targetContainer = $"{AzurePublisher.Product.Sdk}/{Channel}"; + string targetVersionFile = $"{targetContainer}/{CommitHash}"; string semaphoreBlob = $"{targetContainer}/publishSemaphore"; AzurePublisherTool.CreateBlobIfNotExists(semaphoreBlob); string leaseId = AzurePublisherTool.AcquireLeaseOnBlob(semaphoreBlob); @@ -104,7 +104,7 @@ namespace Microsoft.DotNet.Cli.Build string targetName = Path.GetFileName(blob) .Replace(CliNuGetVersion, "latest"); - string target = $"{destinationFolder}{targetName}"; + string target = $"{destinationFolder}/{targetName}"; AzurePublisherTool.CopyBlob(blob, target); } }