akka / akka-http

The Streaming-first HTTP server/module of Akka
https://doc.akka.io/docs/akka-http
Other
1.34k stars 594 forks source link

[Failed] Missing JDK 8 for some jenkins executors #3371

Open ignasi35 opened 4 years ago

ignasi35 commented 4 years ago

[error] A JDK 8 installation was not found, but is required to build Akka. To manually specify a JDK 8 installation, use the "set every jdk8home := \"/path/to/jdk\" sbt command. If you have no JDK 8 installation, target your system JDK with the "set every targetSystemJdk := true" sbt command, but beware resulting artifacts will not work on JDK 8

https://jenkins.akka.io:8498/job/akka-http-nightly-release-10.1/955/AKKA_VERSION=default,Node=akka-http-nightly-node,SCALA_VERSION=2.12.10,jdk=AdoptOpenJDK%2011/console

raboof commented 4 years ago

(this is on the newly introduced 'johannes2' node)

jrudolph commented 4 years ago

I upgraded the docker container for those nodes to use the official AdoptOpenJDK debian packages which put the JDKs at yet another position. I guess we should update the list of paths in the sbt plugin.

raboof commented 4 years ago

Added https://github.com/sbt/sbt/issues/5693

jrudolph commented 4 years ago

Added sbt/sbt#5693

Great, thanks, forgot where it was defined nowadays.

raboof commented 4 years ago

one solution might be to make the switch to test against nightly snapshots instead of building against the akka source, but that might be a bit much to bite off now.

Perhaps we could get jdk8 from Ubuntu (openjdk-8-jdk) after all?

jrudolph commented 4 years ago

I disabled the new nodes for now to reduce distraction with the 10.2 release. I think, it might also suffice to add the right JAVA_8_HOME variable?