use default system Java in Jenkins systemd override file
/usr/bin/java
is a symlink managed by update-alternatives
:
jnuche@releases2003:~$ realpath /usr/bin/java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
We can use it in the systemd file instead of a path to an explicit Java version. This allows for the host Java version to be updated without requiring changes to this repository.
See also https://gerrit.wikimedia.org/r/c/operations/puppet/+/1064437
Bug: T359795