-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync eng/common directory with azure-sdk-tools for PR 6530 (#37697)
* Update-DocsMsMetadata.ps1 can fail the build on invalid packages * Better error handling and logging * Review feedback --------- Co-authored-by: Daniel Jurek <[email protected]>
- Loading branch information
1 parent
71b0af8
commit 5dae1c3
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
eng/common/pipelines/templates/steps/docsms-ensure-validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
steps: | ||
# Fail the build if any of the packages failed validation. Valid values are | ||
# "true" or "false" | ||
- pwsh: | | ||
if ('$(DocsMsPackagesAllValid)' -eq 'true') { | ||
Write-Host "All packages passed validation." | ||
} else { | ||
Write-Error "Some packages failed validation." | ||
exit 1 | ||
} | ||
displayName: Check package validation results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters