Fixing error where lock could not be taken on build folder
This commit is contained in:
parent
19ec330c20
commit
3e690cbbf6
2 changed files with 17 additions and 1 deletions
|
@ -60,7 +60,9 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
{
|
||||
string targetContainer = $"{Channel}/Binaries/Latest/";
|
||||
string targetVersionFile = $"{targetContainer}{CliNuGetVersion}";
|
||||
string leaseId = AzurePublisherTool.AcquireLeaseOnBlob(targetContainer);
|
||||
string semaphoreBlob = $"{Channel}/Binaries/publishSemaphore";
|
||||
AzurePublisherTool.CreateBlobIfNotExists(semaphoreBlob);
|
||||
string leaseId = AzurePublisherTool.AcquireLeaseOnBlob(semaphoreBlob);
|
||||
|
||||
// Prevent race conditions by dropping a version hint of what version this is. If we see this file
|
||||
// and it is the same as our version then we know that a race happened where two+ builds finished
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue