@@ -82,7 +82,7 @@ function GetRemoteName($MainRemoteUrl) {
8282 return $null
8383}
8484
85- function ResetSourcesToReleaseTag ($ArtifactName , $ServiceDirectoryName , $ReleaseVersion , $RepoRoot , $RemoteName ) {
85+ function ResetSourcesToReleaseTag ($ArtifactName , $ServiceDirectoryName , $ReleaseVersion , $RepoRoot , $RemoteName , $GroupId = " com.azure " ) {
8686 $ReleaseTag = " ${ArtifactName} _${ReleaseVersion} "
8787 Write-Information " Resetting the $ArtifactName sources to the release $ReleaseTag ."
8888
@@ -92,7 +92,7 @@ function ResetSourcesToReleaseTag($ArtifactName, $ServiceDirectoryName, $Release
9292 $ArtifactDirPath = Join-Path $ServiceDirPath $ArtifactName
9393 TestPathThrow - Path $ArtifactDirPath - PathName ' ArtifactDirPath'
9494
95- $pkgProperties = Get-PkgProperties - PackageName $ArtifactName - ServiceDirectory $ServiceDirectoryName
95+ $pkgProperties = Get-PkgProperties - PackageName $ArtifactName - ServiceDirectory $ServiceDirectoryName - GroupId $GroupId
9696 $currentPackageVersion = $pkgProperties.Version
9797 if ($currentPackageVersion -eq $ReleaseVersion ) {
9898 Write-Information " We do not have to reset the sources."
@@ -162,7 +162,7 @@ function CreatePatchRelease($ArtifactName, $ServiceDirectoryName, $PatchVersion,
162162 $EngVersioningDir = Join-Path $EngDir " versioning"
163163 $SetVersionFilePath = Join-Path $EngVersioningDir " set_versions.py"
164164 $UpdateVersionFilePath = Join-Path $EngVersioningDir " update_versions.py"
165- $pkgProperties = Get-PkgProperties - PackageName $ArtifactName - ServiceDirectory $ServiceDirectoryName
165+ $pkgProperties = Get-PkgProperties - PackageName $ArtifactName - ServiceDirectory $ServiceDirectoryName - GroupId $GroupId
166166 $ChangelogPath = $pkgProperties.ChangeLogPath
167167 $PomFilePath = Join-Path $pkgProperties.DirectoryPath " pom.xml"
168168
@@ -264,7 +264,7 @@ try {
264264
265265 # # Hard resetting it to the contents of the release tag.
266266 # # Fetching all the tags from the remote branch
267- ResetSourcesToReleaseTag - ArtifactName $ArtifactName - ServiceDirectoryName $ServiceDirectoryName - ReleaseVersion $ReleaseVersion - RepoRoot $RepoRoot - RemoteName $RemoteName
267+ ResetSourcesToReleaseTag - ArtifactName $ArtifactName - ServiceDirectoryName $ServiceDirectoryName - ReleaseVersion $ReleaseVersion - RepoRoot $RepoRoot - RemoteName $RemoteName - GroupId $GroupId
268268 CreatePatchRelease - ArtifactName $ArtifactName - ServiceDirectoryName $ServiceDirectoryName - PatchVersion $PatchVersion - RepoRoot $RepoRoot
269269 $cmdOutput = git add $RepoRoot
270270 if ($LASTEXITCODE -ne 0 ) {
0 commit comments