Skip to content

Commit

Permalink
Merge pull request #777 from grogersxyz/feature-update-required-jdk
Browse files Browse the repository at this point in the history
JENKINS-69581: Install java-11-openjdk
  • Loading branch information
res0nance committed Jan 6, 2023
2 parents 6d95c8f + 80f27fa commit c50beb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ protected void launchScript(EC2Computer computer, TaskListener listener) throws

// TODO: parse the version number. maven-enforcer-plugin might help
final String javaPath = node.javaPath;
executeRemote(computer, conn, javaPath + " -fullversion", "sudo yum install -y java-1.8.0-openjdk.x86_64", logger, listener);
executeRemote(computer, conn, javaPath + " -fullversion", "sudo amazon-linux-extras install java-openjdk11 -y; sudo yum install -y fontconfig java-11-openjdk", logger, listener);
executeRemote(computer, conn, "which scp", "sudo yum install -y openssh-clients", logger, listener);

// Always copy so we get the most recent remoting.jar
Expand Down

0 comments on commit c50beb8

Please sign in to comment.