@@ -38,7 +38,7 @@ function Process-Package([string]$packageInfoPath)
38
38
return
39
39
}
40
40
41
- # Check Azure DevOps Release Plan work items if LanguageShort is available
41
+ # Check Azure DevOps Release Plan work items
42
42
Write-Host " Checking active release plan work items for package: $PackageName "
43
43
$workItems = Get-ReleasePlanForPackage $PackageName
44
44
if (! $workItems )
@@ -57,23 +57,13 @@ function Process-Package([string]$packageInfoPath)
57
57
# Update release status
58
58
Write-Host " Release plan work item ID: $ ( $activeReleasePlan [" id" ]) "
59
59
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
61
61
Write-Host " Successfully marked release completion for package, name: $PackageName version: $PackageVersion ."
62
62
}
63
63
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
79
69
}
0 commit comments