Fix the FinalizeBuild publish artifacts.

There was a mix-up in the trailing slashes, causing assets to go into an unnamed folder.
This commit is contained in:
Eric Erhardt 2016-06-22 21:47:42 -05:00
parent ba1715b8a6
commit d88546e523

View file

@ -51,8 +51,8 @@ namespace Microsoft.DotNet.Cli.Build
{ {
if (CheckIfAllBuildsHavePublished()) if (CheckIfAllBuildsHavePublished())
{ {
string targetContainer = $"{AzurePublisher.Product.Sdk}/{Channel}/"; string targetContainer = $"{AzurePublisher.Product.Sdk}/{Channel}";
string targetVersionFile = $"{targetContainer}{CommitHash}"; string targetVersionFile = $"{targetContainer}/{CommitHash}";
string semaphoreBlob = $"{targetContainer}/publishSemaphore"; string semaphoreBlob = $"{targetContainer}/publishSemaphore";
AzurePublisherTool.CreateBlobIfNotExists(semaphoreBlob); AzurePublisherTool.CreateBlobIfNotExists(semaphoreBlob);
string leaseId = AzurePublisherTool.AcquireLeaseOnBlob(semaphoreBlob); string leaseId = AzurePublisherTool.AcquireLeaseOnBlob(semaphoreBlob);
@ -104,7 +104,7 @@ namespace Microsoft.DotNet.Cli.Build
string targetName = Path.GetFileName(blob) string targetName = Path.GetFileName(blob)
.Replace(CliNuGetVersion, "latest"); .Replace(CliNuGetVersion, "latest");
string target = $"{destinationFolder}{targetName}"; string target = $"{destinationFolder}/{targetName}";
AzurePublisherTool.CopyBlob(blob, target); AzurePublisherTool.CopyBlob(blob, target);
} }
} }