Skip to content

Commit

Permalink
Put more logging message out.
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu committed Sep 3, 2020
1 parent d4048a5 commit 3c2d23d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eng/common/scripts/artifact-metadata-parsing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,11 @@ function RetrieveReleaseTag($pkgRepository, $artifactLocation, $continueOnError
try {
$pkgs, $parsePkgInfoFn = RetrievePackages -pkgRepository $pkgRepository -artifactLocation $artifactLocation
if (!$pkgs -or !$pkgs[0]) {
Write-Host "No packages retrieved from artifact location."
return ""
}
if ($pkgs.Count > 1) {
Write-Host "There are more than 1 packages retieved from artifact location."
return ""
}
$parsedPackage = &$parsePkgInfoFn -pkg $pkgs[0]
Expand Down

0 comments on commit 3c2d23d

Please sign in to comment.