From be6dff77c82a571b5cec19f2fa10ef76eb82d8e9 Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Sun, 31 Mar 2019 21:36:55 +0300 Subject: [PATCH] azure: check that diff returns exit code 1 --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a679999da5..d8bfc7fa34 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -58,7 +58,8 @@ jobs: - bash: | set -ex mkdir bundles - diff -r vanilla cmclient -B -X .diff-exclude > bundles/citymania-client-$(Build.BuildNumber).diff + diff -r vanilla cmclient -B -X .diff-exclude > bundles/citymania-client-$(Build.BuildNumber).diff || EXIT_CODE=$? && true + if ((EXIT_CODE != 1)); then exit $EXIT_CODE; fi; displayName: 'Make diff' - task: PublishBuildArtifacts@1 displayName: 'Publish bundles'