Skip to content

Commit 8f1d6ac

Browse files
azure-sdksima-zhu
andauthored
Sync eng/common directory with azure-sdk-tools for PR 2673 (#20206)
* Fixed the failures from strict mode. * Update Metadata-Helpers.ps1 Co-authored-by: sima-zhu <[email protected]> Co-authored-by: Sima Zhu <[email protected]>
1 parent c447181 commit 8f1d6ac

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

eng/common/scripts/Helpers/Metadata-Helpers.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ function GetMsAliasFromGithub ($TenantId, $ClientId, $ClientSecret, $GithubUser)
3333
$resp = Invoke-RestMethod $OpensourceAPIBaseURI -Method 'GET' -Headers $Headers
3434
}
3535
catch {
36-
Write-Error $_
36+
Write-Warning $_
3737
return $null
3838
}
3939

4040
$resp | Write-Verbose
4141

4242
if ($resp.aad) {
43-
Write-Host "Fetched aad identity $($resp.aad.alias) for github user $GithubUser."
43+
Write-Host "Fetched aad identity $($resp.aad.alias) for github user $GithubUser. "
4444
return $resp.aad.alias
4545
}
46-
Write-Error "Failed to retrieve the aad identity from given github user: $GithubName"
46+
Write-Warning "Failed to retrieve the aad identity from given github user: $GithubName"
4747
return $null
4848
}
4949

@@ -54,6 +54,6 @@ function GetPrimaryCodeOwner ($TargetDirectory)
5454
Write-Host "Code Owners are $codeOwnerArray."
5555
return $codeOwnerArray[0]
5656
}
57-
Write-Error "No code owner found in $TargetDirectory."
57+
Write-Warning "No code owner found in $TargetDirectory."
5858
return $null
59-
}
59+
}

eng/common/scripts/Update-DocsMsMetadata.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ foreach ($packageInfoLocation in $PackageInfoJsonLocations) {
225225
if ($ValidateDocsMsPackagesFn -and (Test-Path "Function:$ValidateDocsMsPackagesFn")) {
226226
Write-Host "Validating the package..."
227227
&$ValidateDocsMsPackagesFn -PackageInfo $packageInfo -PackageSourceOverride $PackageSourceOverride -DocValidationImageId $DocValidationImageId -DocRepoLocation $DocRepoLocation
228-
if ($LASTEXITCODE) {
229-
LogError "The package failed Doc.Ms validation. Check https://aka.ms/azsdk/docs/docker for more details on how to diagnose this issue."
230-
exit $LASTEXITCODE
231-
}
232228
}
233229
Write-Host "Updating the package json ..."
234230
UpdateDocsMsMetadataForPackage $packageInfoLocation $packageInfo

0 commit comments

Comments
 (0)