Skip to content

Commit

Permalink
Fixed the group id (Azure#26040)
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Dec 15, 2021
1 parent d057fb5 commit 934200f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function ValidatePackage($groupId, $artifactId, $version, $DocValidationImageId)
else
{
Write-Host "Validating using $DocValidationImageId on $artifactId."
return DockerValidation -packageName "$artifactId" -packageVersion "$version" -groupId "$groudId" -DocValidationImageId $DocValidationImageId -workingDirectory $packageDirectory
return DockerValidation -packageName "$artifactId" -packageVersion "$version" -groupId "$groupId" -DocValidationImageId $DocValidationImageId -workingDirectory $packageDirectory
}
}

Expand All @@ -372,7 +372,6 @@ function FallbackValidation ($artifactNamePrefix, $workingDirectory)

function DockerValidation($packageName, $packageVersion, $groupId, $DocValidationImageId, $workingdirectory)
{

$output = docker run -v "${workingDirectory}:/workdir/out" `
-e TARGET_PACKAGE=$packageName -e TARGET_VERSION=$packageVersion -e TARGET_GROUP_ID=$groupId -t $DocValidationImageId 2>&1
# The docker exit codes: https://docs.docker.com/engine/reference/run/#exit-status
Expand Down Expand Up @@ -659,7 +658,7 @@ function Validate-java-DocMsPackages ($PackageInfo, $DocValidationImageId)
{
if (!(ValidatePackage $PackageInfo.Group $PackageInfo.Name $PackageInfo.Version $DocValidationImageId))
{
Write-Error "Package $PackageInfo.Name failed on validation" -ErrorAction Stop
Write-Error "Package $($PackageInfo.Name) failed on validation" -ErrorAction Continue
}
return
}

0 comments on commit 934200f

Please sign in to comment.