We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a3c24a + fc737d9 commit ae8756eCopy full SHA for ae8756e
1 file changed
Evergreen/Shared/Get-AmazonCorretto.ps1
@@ -23,10 +23,22 @@ function Get-AmazonCorretto {
23
24
# Construct the output; Return the custom object to the pipeline
25
if ($null -ne $Response) {
26
+
27
+ $ImageType = if ($Url -match "jre") {
28
+ "JRE"
29
+ }
30
+ elseif ($Url -match "jdk") {
31
+ "JDK"
32
33
+ else {
34
+ "Unknown"
35
36
37
$PSObject = [PSCustomObject] @{
38
Version = [RegEx]::Match($Response.ResponseUri.LocalPath, $res.Get.Download.MatchVersion).Captures.Groups[1].Value
39
Md5 = (Invoke-EvergreenWebRequest -Uri $ChecksumUrl -Raw -ReturnObject "Content")
40
Architecture = Get-Architecture -String $Response.ResponseUri.AbsoluteUri
41
+ ImageType = $ImageType
42
Type = Get-FileType -File $Response.ResponseUri.AbsoluteUri
43
URI = $Response.ResponseUri.AbsoluteUri
44
}
0 commit comments