Skip to content

Commit 8bba82d

Browse files
praveenkuttappanazure-sdk
authored andcommitted
Updated as per review comments
1 parent 46d53d2 commit 8bba82d

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

eng/common/scripts/Mark-ReleasePlanCompletion.ps1

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Process-Package([string]$packageInfoPath)
3838
return
3939
}
4040

41-
# Check Azure DevOps Release Plan work items if LanguageShort is available
41+
# Check Azure DevOps Release Plan work items
4242
Write-Host "Checking active release plan work items for package: $PackageName"
4343
$workItems = Get-ReleasePlanForPackage $PackageName
4444
if(!$workItems)
@@ -57,23 +57,13 @@ function Process-Package([string]$packageInfoPath)
5757
# Update release status
5858
Write-Host "Release plan work item ID: $($activeReleasePlan["id"])"
5959
Write-Host "Marking release completion for package, name: $PackageName version: $PackageVersion"
60-
#Update-ReleaseStatusInReleasePlan $activeReleasePlan.id "Released" $PackageVersion
60+
Update-ReleaseStatusInReleasePlan $activeReleasePlan.id "Released" $PackageVersion
6161
Write-Host "Successfully marked release completion for package, name: $PackageName version: $PackageVersion."
6262
}
6363

64-
$InfoFileName = Split-Path $PackageInfoFilePath -Leaf
65-
# Process the package if given path is package info file
66-
if ($InfoFileName -like "*.json")
67-
{
68-
Write-Host "Processing package info file: $PackageInfoFilePath"
69-
Process-Package $PackageInfoFilePath
70-
}
71-
else
72-
{
73-
Write-Host "Finding all package info files in directory: $PackageInfoFilePath"
74-
# Get all package info file under the directory given in input param and process
75-
Get-ChildItem -Path $PackageInfoFilePath -Filter "*.json" | ForEach-Object {
76-
Write-Host "Processing package info file: $_"
77-
Process-Package $_.FullName
78-
}
64+
Write-Host "Finding all package info files in directory: $PackageInfoFilePath"
65+
# Get all package info file under the directory given in input param and process
66+
Get-ChildItem -Path $PackageInfoFilePath -Filter "*.json" | ForEach-Object {
67+
Write-Host "Processing package info file: $_"
68+
Process-Package $_.FullName
7969
}

0 commit comments

Comments
 (0)