From 0e5e53d017f9dd6147497280f7097dc51d3fa906 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 9 Sep 2021 11:03:54 -0700 Subject: [PATCH] Explicitly exit 0 so a failed inner command (like mvn) doesn't propagate up to a failure of the pipeline (#20609) Co-authored-by: Daniel Jurek --- eng/common/scripts/Update-DocsMsPackages.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 576159e7785d..f93e6cb058b4 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -133,3 +133,7 @@ if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn")) See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit 1 } + +# Exit 0 so DevOps doesn't fail the build when the last command called by the +# domain-specific function exited with a non-zero exit code. +exit 0