Skip to content

Commit

Permalink
Update to Java 17 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored May 20, 2024
1 parent a716859 commit 22ae876
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/docker-fixtures</gitHubRepo>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spotbugs.failOnError>false</spotbugs.failOnError> <!-- TODO -->
<!-- TODO triage violations -->
<spotbugs.threshold>High</spotbugs.threshold>
</properties>
Expand Down Expand Up @@ -99,7 +97,6 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#

# sha1sum ../SshdContainer/Dockerfile | cut -c 1-12
FROM jenkins/sshd:32edfdd58111
FROM jenkins/sshd:23e678bc2c56

RUN apt-get update && \
apt-get install --no-install-recommends -y \
software-properties-common \
openjdk-11-jdk-headless \
openjdk-17-jdk-headless \
curl \
ant \
maven
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Runs sshd and allow the 'test' user to login
#

FROM ubuntu:bionic
FROM ubuntu:noble

# install SSHD
RUN apt-get update -y && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void backToCache() {
@Test
public void smokes() throws Exception {
JavaContainer c = rule.get();
assertThat(c.popen(new CommandBuilder("java", "-version")).verifyOrDieWith("could not launch Java"), containsString("openjdk version \"11"));
assertThat(c.popen(new CommandBuilder("java", "-version")).verifyOrDieWith("could not launch Java"), containsString("openjdk version \"17"));
c.sshWithPublicKey(new CommandBuilder("id"));
}

Expand Down

0 comments on commit 22ae876

Please sign in to comment.