Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools repository (#12870)
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk authored Jul 7, 2020
1 parent afe7b59 commit 5dfe115
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions eng/common/scripts/Verify-ChangeLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ param (
[boolean]$ForRelease=$False
)

$ProgressPreference = "SilentlyContinue"
. (Join-Path $PSScriptRoot SemVer.ps1)
Import-Module (Join-Path $PSScriptRoot modules ChangeLog-Operations.psm1)

Expand Down
11 changes: 9 additions & 2 deletions eng/common/scripts/modules/Package-Properties.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class PackageProps
}
}

$ProgressPreference = "SilentlyContinue"
Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser

function Extract-PkgProps ($pkgPath, $serviceName, $pkgName, $lang)
Expand Down Expand Up @@ -239,8 +240,14 @@ function Get-PkgListFromYml ($ciYmlPath)
{
$ciYmlContent = Get-Content $ciYmlPath -Raw
$ciYmlObj = ConvertFrom-Yaml $ciYmlContent -Ordered
$artifactsInCI = $ciYmlObj["stages"][0]["parameters"]["Artifacts"]

if ($ciYmlObj.Contains("stages"))
{
$artifactsInCI = $ciYmlObj["stages"][0]["parameters"]["Artifacts"]
}
elseif ($ciYmlObj.Contains("extends"))
{
$artifactsInCI = $ciYmlObj["extends"]["parameters"]["Artifacts"]
}
if ($artifactsInCI -eq $null)
{
Write-Error "Failed to retrive package names in ci $ciYmlPath"
Expand Down

0 comments on commit 5dfe115

Please sign in to comment.