From a8e9a59edf55ceba41b6c80b44722711d120e3d6 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 22 Jan 2025 22:09:46 +0100 Subject: [PATCH] ci(azure-pipelines): use reduce for dependsOn service mapping --- .azure-pipelines/templates/service.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/service.yaml b/.azure-pipelines/templates/service.yaml index d6aa6199e..fdb5f9235 100644 --- a/.azure-pipelines/templates/service.yaml +++ b/.azure-pipelines/templates/service.yaml @@ -82,8 +82,7 @@ jobs: condition: | and( in(dependencies.ImageBuild_${{parameters.service.name}}.result, 'Succeeded', 'Skipped'), - ${{ each dep in parameters.service.dependsOn }}: - eq(dependencies.${{dep}}.result, 'Succeeded') + reduce(parameters.service.dependsOn, true, and(#acc, eq(dependencies.#acc.result, 'Succeeded')), #result) ) container: # TODO: use BuildNumber instead of latest in update branches