diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml index 4693e5e931..72182b4f58 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml @@ -139,7 +139,7 @@ jobs: # So, all the copy/publish jobs are being run on hosted agent # TODO: install the desired azureps on our VMs or use later bugfixed version of AzureFileCopy demands: azureps - condition: and (${{ parameters.DoEsrp }}, eq(variables['Build.SourceBranch'], 'refs/heads/master')) + condition: and (succeeded(), and (${{ parameters.DoEsrp }}, eq(variables['Build.SourceBranch'], 'refs/heads/master'))) dependsOn: - NuGet_Test_Win - NuGet_Test_Linux @@ -152,6 +152,7 @@ jobs: parameters: downloadPath: $(Build.BinariesDirectory)/nuget-artifact/final-package gitCommitHash: $(OnnxRuntimeGitCommitHashShort) + contiueOnError: true - template: get-nuget-package-version-as-variable.yml parameters: @@ -175,6 +176,7 @@ jobs: storage: ortpackages containerName: ortpackages blobPrefix: '$(CurrentDate)/' + continueOnError: true - task: DotNetCoreCLI@2 displayName: 'Copy Signed NuGet Package to Internal NuGet Feed'