Handle the failures when package work item is unassigned (#5551)

Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-04-18 10:43:14 -07:00 committed by GitHub
parent e28ac6cdb1
commit 94cba7934b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,12 @@ Write-Host "Updated or created a release work item for a package release with th
Write-Host " Lanuage: $($workItem.fields['Custom.Language'])"
Write-Host " Version: $($workItem.fields['Custom.PackageVersionMajorMinor'])"
Write-Host " Package: $($workItem.fields['Custom.Package'])"
Write-Host " AssignedTo: $($workItem.fields['System.AssignedTo']["uniqueName"])"
if ($workItem.fields['System.AssignedTo']) {
Write-Host " AssignedTo: $($workItem.fields['System.AssignedTo']["uniqueName"])"
}
else {
Write-Host " AssignedTo: unassigned"
}
Write-Host " PackageDisplayName: $($workItem.fields['Custom.PackageDisplayName'])"
Write-Host " ServiceName: $($workItem.fields['Custom.ServiceName'])"
Write-Host " PackageType: $($workItem.fields['Custom.PackageType'])"