From dc7dce482a53f4e3d20504c15964a1a4d0602ac8 Mon Sep 17 00:00:00 2001 From: Francisco Gamino Date: Fri, 29 Oct 2021 07:41:37 -0700 Subject: [PATCH] Update logic to push the Python worker package to the AzureFunctionsPreRelease feed --- azure-pipelines.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e741a753..b56ca090 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -211,17 +211,8 @@ jobs: inputs: pathtoPublish: '$(Build.ArtifactStagingDirectory)' artifactName: 'PythonWorker' - - pwsh: | - $uploadPackage = $null - if (-not ([bool]::TryParse($env:UPLOADPACKAGETOPRERELEASEFEED, [ref] $uploadPackage))) - { - throw "UploadPackageToPreReleaseFeed can only be set to True or False. Current value is set to $env:UPLOADPACKAGETOPRERELEASEFEED" - } - Write-Host "##vso[task.setvariable variable=UploadPackage]$uploadPackage" - Write-Host "UploadPackage: $uploadPackage" - displayName: '[Integration Test] Set UploadPackage variable' - task: NuGetCommand@2 - condition: and(eq(variables.UploadPackage, true), eq(variables['Build.SourceBranch'], 'refs/heads/dev')) + condition: eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true) inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'