File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 7
7
8
8
phases :
9
9
install :
10
+ runtime-versions :
11
+ java : corretto17
12
+
10
13
commands :
11
- - |
12
- $url = 'https://corretto.aws/downloads/latest/amazon-corretto-17-x64-windows-jdk.msi';
13
- Write-Host ('Downloading from {0}' -f $url);
14
- [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
15
- Invoke-WebRequest -Uri $url -OutFile 'corretto_jdk_build.msi';
16
- Start-Process 'corretto_jdk_build.msi' -PassThru | Wait-Process
17
- - |
18
- $javaName = "C:\Program Files\Amazon Corretto" | ForEach-Object {
19
- ls $_ | Sort-Object -Descending -Property Name | Select-Object -first 1 -expandproperty Name
20
- }
21
- $JAVA_HOME = "C:\Program Files\Amazon Corretto\$javaName"
22
14
- |
23
15
if(-Not($Env:CODE_COV_TOKEN -eq $null)) {
24
16
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
@@ -41,7 +33,6 @@ phases:
41
33
# See https://github.com/NuGet/NuGet.Client/pull/4259
42
34
$Env:NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY = "3,1000"
43
35
44
- $Env:JAVA_HOME = $JAVA_HOME
45
36
if ($Env:CODEARTIFACT_DOMAIN_NAME -and $Env:CODEARTIFACT_REPO_NAME) {
46
37
$Env:CODEARTIFACT_URL=aws codeartifact get-repository-endpoint --domain $Env:CODEARTIFACT_DOMAIN_NAME --repository $Env:CODEARTIFACT_REPO_NAME --format maven --query repositoryEndpoint --output text
47
38
$Env:CODEARTIFACT_NUGET_URL=aws codeartifact get-repository-endpoint --domain $Env:CODEARTIFACT_DOMAIN_NAME --repository $Env:CODEARTIFACT_REPO_NAME --format nuget --query repositoryEndpoint --output text
You can’t perform that action at this time.
0 commit comments