You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync eng/common directory with azure-sdk-tools for PR 13076 (#25756)
* Used full pkg name in release work items
* Used full pkg name for dev ops work item
* Added test
* Pass in package info file path
* Reverted changes to verify-changelog.yml and script
* Updated script to process groupId in work items
* Renamed new property to GroupId
* Removed the condition check for Group
* Build hash key with non-null arguments
* Used the original BuildHashKey to return hash from non-null args
---------
Co-authored-by: ray chen <[email protected]>
LogError "Failed to retrieve Properties for [$PackageName]"
265
+
if ([string]::IsNullOrEmpty($GroupId)) {
266
+
LogError "Failed to retrieve Properties for [$PackageName]"
267
+
}
268
+
else {
269
+
LogError "Failed to retrieve Properties for [$PackageName] with GroupId [$GroupId]. Ensure the package has a Group property matching the specified GroupId."
270
+
}
252
271
return$null
253
272
}
254
273
@@ -568,3 +587,25 @@ function Get-PkgPropsForEntireService ($serviceDirectoryPath) {
568
587
569
588
return$projectProps
570
589
}
590
+
591
+
# Get the full package name based on packageInfo properties
592
+
# Returns Group+ArtifactName if Group exists and has a value, otherwise returns Name
593
+
# If UseColonSeparator switch is enabled, returns Group:ArtifactName format (colon separator)
594
+
functionGet-FullPackageName {
595
+
param (
596
+
[Parameter(Mandatory=$true)]
597
+
[PSCustomObject]$PackageInfo,
598
+
[switch]$UseColonSeparator
599
+
)
600
+
601
+
if ($PackageInfo.PSObject.Members.Name-contains"Group") {
Copy file name to clipboardExpand all lines: eng/common/scripts/Prepare-Release.ps1
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,9 @@ If one isn't provided, then it will compute the next ship date or today's date i
30
30
.PARAMETERReleaseTrackingOnly
31
31
Optional: If this switch is passed then the script will only update the release work items and not update the versions in the local repo or validate the changelog.
32
32
33
+
.PARAMETERGroupId
34
+
Optional: The group ID for the package. For Java packages, if not provided, the script will prompt for input with 'com.azure' as the default.
0 commit comments