Na VM utilizada para o laboratório a versão do java é incompatível com as novas versões do jenkins, fazendo o serviço não iniciar no S.O.
systemctl status jenkins.service
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2024-04-12 13:40:14 UTC; 10min ago
Process: 23226 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 23226 (code=exited, status=1/FAILURE)
Apr 12 13:40:10 ubuntu-bionic systemd[1]: Starting Jenkins Continuous Integration Server...
Apr 12 13:40:11 ubuntu-bionic jenkins[22859]: Running with Java 8 from /usr/lib/jvm/java-8-openjdk-amd64/jre, which is older than the minimum required version (Java 11).
Apr 12 13:40:11 ubuntu-bionic jenkins[22859]: Supported Java versions are: [11, 17, 21]
Apr 12 13:40:11 ubuntu-bionic jenkins[22859]: See https://jenkins.io/redirect/java-support/ for more information.
Apr 12 13:40:11 ubuntu-bionic systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 13:40:11 ubuntu-bionic systemd[1]: jenkins.service: Failed with result 'exit-code'.
Apr 12 13:40:11 ubuntu-bionic systemd[1]: Failed to start Jenkins Continuous Integration Server.
O java deve ser atualizado com o comando:
sudo apt install default-jdk