From 17e9ff53db2c36a059bde139eaaf50a6fbb8303e Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 30 Sep 2019 15:55:10 -0500 Subject: [PATCH] keep trying to push to GH pkg reg, but don't fail the build if it fails --- azure-pipelines.api.yaml | 2 +- azure-pipelines.web.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.api.yaml b/azure-pipelines.api.yaml index 802f6b4ca..e5e300ce1 100644 --- a/azure-pipelines.api.yaml +++ b/azure-pipelines.api.yaml @@ -148,7 +148,7 @@ steps: CleanTargetFolder: true OverWrite: true # condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - condition: "eq(variables['Build.SourceBranch'], 'refs/heads/master')" + condition: "and(succeededOrFailed(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - task: PublishBuildArtifacts@1 displayName: "publish docker-compose files" diff --git a/azure-pipelines.web.yaml b/azure-pipelines.web.yaml index 9f6b9341e..fbf81e0dd 100644 --- a/azure-pipelines.web.yaml +++ b/azure-pipelines.web.yaml @@ -65,7 +65,7 @@ steps: CleanTargetFolder: true OverWrite: true # condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - condition: "eq(variables['Build.SourceBranch'], 'refs/heads/master')" + condition: "and(succeededOrFailed(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - task: PublishBuildArtifacts@1 displayName: "publish docker-compose files"