From 71da6b3a18cf85433fc39b9d11a0ab0857786921 Mon Sep 17 00:00:00 2001 From: "nkl199@yahoo.co.uk" Date: Wed, 6 Jan 2021 11:00:53 +0000 Subject: [PATCH] prevent cascade skip Signed-off-by: nkl199@yahoo.co.uk --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a2547821f..8eb302435 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,8 @@ stages: - stage: Publish displayName: Publish Caliper - condition: and(succeeded(), eq(variables['Build.Reason'], 'IndividualCI')) + # having a blind succeeded here will not work if a preceding stage was skipped + condition: and(not(failed('UnitTests')), eq(variables['Build.Reason'], 'IndividualCI')) jobs: - job: PublishNPM displayName: "Publish Caliper NPM packages"