From 7b2bc31a2800fbd4e490c2cfc94da4469d4d4c85 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 2 Sep 2021 10:57:29 -0700 Subject: [PATCH] Explicitly exit 0 so a failed inner command (like mvn) doesn't propagate up to a failure of the pipeline --- 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 576159e778..f93e6cb058 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