Skip to content

Commit

Permalink
Java 17 is default (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski authored Nov 12, 2024
1 parent eac688d commit e6b2312
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Requirements
------------

- Minimal Version of the ansible for installation: 2.7
- **Java 8** [![Build Status](https://travis-ci.org/lean-delivery/ansible-role-java.svg?branch=master)](https://travis-ci.org/lean-delivery/ansible-role-java)
- **Java 17**
- **Supported OS**:
- CentOS
- 8
Expand Down Expand Up @@ -668,7 +668,7 @@ Example Playbook
roles:
- role: lean_delivery.java
java_distribution: openjdk
java_major_version: 11
java_major_version: 17
transport: repositories
- role: lean_delivery.jenkins
```
Expand Down
6 changes: 4 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jenkins2_home_directory: /var/lib/jenkins

jenkins2_config_java_cmd: ''
jenkins2_config_java_options: >-
-Djava.awt.headless=true -Djenkins.install.runSetupWizard=false
-Dmail.smtp.starttls.enable='true' -Dhudson.slaves.WorkspaceList=_
-Djava.awt.headless=true
-Djenkins.install.runSetupWizard=false
-Dmail.smtp.starttls.enable='true'
-Dhudson.slaves.WorkspaceList=_
-Dhudson.security.csrf.DefaultCrumbIssuer.EXCLUDE_SESSION_ID='true'
jenkins2_config_http_port: 8080
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
roles:
- role: lean_delivery.java
java_major_version: 8
java_major_version: 17
java_package: jdk
transport: repositories
java_tarball_install: false
2 changes: 1 addition & 1 deletion playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- role: lean_delivery.java
java_distribution: zulu
transport: fallback
java_major_version: 11
java_major_version: 17
java_package: jdk
- role: ansible-role-jenkins
jenkins2_jcasc_config:
Expand Down
2 changes: 1 addition & 1 deletion templates/jenkins_system_config/jenkins.service
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Environment="JENKINS_WEBROOT=%C/jenkins/war"
#Environment="JENKINS_LOG=%L/jenkins/jenkins.log"

# The Java home directory. When left empty, JENKINS_OCMD and PATH are consulted.
#Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64"
#Environment="JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64"

# The Java executable. When left empty, JAVA_HOME and PATH are consulted.
#Environment="JENKINS_JAVA_CMD=/etc/alternatives/java"
Expand Down

0 comments on commit e6b2312

Please sign in to comment.