From e53bbdbc46a18b0508b938668ba7ead306b1c810 Mon Sep 17 00:00:00 2001 From: Matias Quaranta Date: Wed, 5 Apr 2023 15:31:15 -0700 Subject: [PATCH] wire previous content delete --- templates/nuget-pack.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/nuget-pack.yml b/templates/nuget-pack.yml index 874676d3e1..170f086c61 100644 --- a/templates/nuget-pack.yml +++ b/templates/nuget-pack.yml @@ -8,6 +8,7 @@ parameters: OutputPath: '' ReleasePackage: false BlobVersion: '' + DeletePreviousContent: false jobs: - job: GenerateNugetPackages @@ -47,7 +48,7 @@ jobs: BuildDropPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos' - task: AzureFileCopy@2 - displayName: ' Copy Artifacts to Azure SDK Release blob storage' + displayName: 'Copy Artifacts to Azure SDK Release blob storage' condition: and(succeeded(),ne(${{ parameters.BlobVersion }}, '')) inputs: SourcePath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos' @@ -56,6 +57,7 @@ jobs: storage: azuresdkpartnerdrops ContainerName: 'drops' BlobPrefix: 'cosmosdb/csharp/$(BlobVersion)' + CleanTargetBeforeCopy: DeletePreviousContent - task: PublishBuildArtifacts@1 displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos'