Skip to content

Commit

Permalink
Build: fix deploy condition to use not(succeeded()) instead of failed…
Browse files Browse the repository at this point in the history
…() to account for skipped condition (#827)
  • Loading branch information
gracewehner authored Apr 12, 2024
1 parent 0db6d70 commit 45bcd7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pipelines/azure-pipeline-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ stages:
jobs:
- deployment: Deploy_Chart_ARC
displayName: "Deploy: Arc dev cluster"
condition: and(succeeded(), and(and(eq(variables.IS_PR, false), eq(variables.IS_MAIN_BRANCH, true)), or(failed('Deploy_Chart_ARC'), eq(variables['System.StageAttempt'], 1))))
condition: and(succeeded(), and(and(eq(variables.IS_PR, false), eq(variables.IS_MAIN_BRANCH, true)), or(not(succeeded('Deploy_Chart_ARC')), eq(variables['System.StageAttempt'], 1))))
environment: Prometheus-Collector
pool:
name: Azure-Pipelines-CI-Test-EO
Expand Down Expand Up @@ -1184,7 +1184,7 @@ stages:
environment: Prometheus-Collector
pool:
name: Azure-Pipelines-CI-Test-EO
condition: and(and(eq(variables.IS_PR, false), eq(variables.IS_MAIN_BRANCH, true)), or(failed('Deploy_AKS_Chart'), eq(variables['System.StageAttempt'], 1)))
condition: and(and(eq(variables.IS_PR, false), eq(variables.IS_MAIN_BRANCH, true)), or(not(succeeded('Deploy_AKS_Chart')), eq(variables['System.StageAttempt'], 1)))
variables:
HELM_CHART_NAME: $[ stageDependencies.Build.Image_Tags_and_Ev2_Artifacts.outputs['setup.HELM_CHART_NAME'] ]
HELM_SEMVER: $[ stageDependencies.Build.Image_Tags_and_Ev2_Artifacts.outputs['setup.SEMVER'] ]
Expand Down

0 comments on commit 45bcd7c

Please sign in to comment.