From 696cfaee0785bcafcfb1dea5b36d264b60574848 Mon Sep 17 00:00:00 2001 From: Baiju Meswani Date: Mon, 5 Feb 2024 21:32:50 +0000 Subject: [PATCH] Another try --- .../templates/packaging-pipeline-steps.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml b/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml index 600e267..3ee3e19 100644 --- a/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml @@ -12,13 +12,6 @@ parameters: type: string default: "" -variables: -- name: UploadWheel - value: ${{ parameters.UploadWheel}} -- name: BuildType - value: ${{ parameters.BuildType}} - - steps: - template: set-python-manylinux-variables-step.yml @@ -51,7 +44,7 @@ steps: workingDirectory: $(Build.SourcesDirectory) - task: CopyFiles@2 - condition: and(succeeded(), eq(variables.UploadWheel, 'yes')) + condition: and(succeeded(), eq("${{ parameters.UploadWheel }}", 'yes')) displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)' inputs: SourceFolder: '$(Build.SourcesDirectory)' @@ -88,7 +81,7 @@ steps: displayName: "docker run build.py --wheel_file /torch_ort_src/dist/$whlfilename" - task: AzureCLI@2 - condition: and(succeeded(), eq(variables.UploadWheel, 'yes'), eq(variables.BuildType, 'nightly')) + condition: and(succeeded(), eq("${{ parameters.UploadWheel }}", 'yes'), eq("${{ parameters.BuildType }}", 'nightly')) inputs: azureSubscription: 'AIInfraBuildOnnxRuntimeOSS' scriptType: 'bash'