Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore old windows runner for gradle and update jdk21 #367

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/compute/agent-node-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ export class AgentNodeConfig {
key: 'JAVA20_HOME',
value: '/usr/lib/jvm/temurin-20-jdk-amd64',
},
{
key: 'JAVA21_HOME',
value: '/usr/lib/jvm/temurin-21-jdk-amd64',
},
],
},
},
Expand Down
3 changes: 2 additions & 1 deletion packer/jenkins-agent-win2019-x64-gradle-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"scripts/windows/smb-setup-2019-plus.ps1",
"scripts/windows/longpath-setup.ps1",
"scripts/windows/scoop-setup.ps1",
"scripts/windows/scoop-install-commons-docker-support.ps1"
"scripts/windows/legacy/scoop-install-commons.ps1",
"scripts/windows/legacy/pip-install.ps1"
],
"max_retries": 3
},
Expand Down
4 changes: 2 additions & 2 deletions packer/scripts/ubuntu2004/ubuntu2004-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sudo apt-get install -y apt-transport-https gnupg
curl -SL https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update -y
sudo apt-get install -y temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-19-jdk temurin-20-jdk
sudo apt-get install -y temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-19-jdk temurin-20-jdk temurin-21-jdk
# JDK14 required for gradle check to do bwc tests
curl -SL "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz" -o jdk14.tar.gz
tar -xzf jdk14.tar.gz && rm jdk14.tar.gz
Expand All @@ -47,5 +47,5 @@ sudo update-alternatives --set "java" "/usr/lib/jvm/temurin-11-jdk-amd64/bin/jav
sudo update-alternatives --set "javac" "/usr/lib/jvm/temurin-11-jdk-amd64/bin/javac"
java -version

sudo apt-mark hold docker docker.io openssh-server temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-19-jdk temurin-20-jdk
sudo apt-mark hold docker docker.io openssh-server temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-19-jdk temurin-20-jdk temurin-21-jdk
sudo apt-get clean -y
2 changes: 1 addition & 1 deletion packer/scripts/windows/legacy/scoop-install-commons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $zlibRegFilePath
regedit /s $zlibRegFilePath

# Install jdk
$jdkVersionList = "temurin8-jdk JAVA8_HOME", "temurin11-jdk JAVA11_HOME", "temurin17-jdk JAVA17_HOME", "temurin19-jdk JAVA19_HOME", "openjdk20 JAVA20_HOME", "openjdk14 JAVA14_HOME"
$jdkVersionList = "temurin8-jdk JAVA8_HOME", "temurin11-jdk JAVA11_HOME", "temurin17-jdk JAVA17_HOME", "temurin19-jdk JAVA19_HOME", "openjdk20 JAVA20_HOME", "openjdk21 JAVA21_HOME", "openjdk14 JAVA14_HOME"
Foreach ($jdkVersion in $jdkVersionList)
{
$jdkVersion
Expand Down
8 changes: 7 additions & 1 deletion resources/baseJenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ tool:
installers:
- adoptOpenJdkInstaller:
id: "jdk-20.0.1+9"
- name: "openjdk-21"
properties:
- installSource:
installers:
- adoptOpenJdkInstaller:
id: "jdk-21.0.1+12"
mavenGlobalConfig:
globalSettingsProvider: "standard"
settingsProvider: "standard"
Expand Down Expand Up @@ -250,4 +256,4 @@ support:
- "PipelineTimings"
- "PipelineThreadDump"
enabled: true
period: 1
period: 1
Loading