Skip to content

Commit d713ec0

Browse files
authored
Remove Liberica install as we don't directly connect jenkins to Solaris now (#4156)
* Remove Liberica install as we don't directly connect jenkins to Solaris now Signed-off-by: Stewart X Addison <sxa@ibm.com> --------- Signed-off-by: Stewart X Addison <sxa@ibm.com> Co-authored-by: Stewart X Addison <sxa@ibm.com>
1 parent 0042ad1 commit d713ec0

1 file changed

Lines changed: 4 additions & 85 deletions

File tree

  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/Solaris.yml

Lines changed: 4 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -369,89 +369,8 @@
369369
- ansible_architecture == "i386"
370370
tags: build_tools
371371

372-
- name: Check if Liberica 11 is already installed in the target location
373-
stat: path=/usr/lib/jvm/jdk-11/bin/java
374-
register: liberica11_installed
375-
tags: build_tools
376-
377-
- name: Download Liberica 11.0.18+10 (SPARC)
378-
get_url:
379-
url: https://download.bell-sw.com/java/11.0.18+10/bellsoft-jdk11.0.18+10-solaris-sparcv9.tar.gz
380-
dest: /tmp/bellsoft-jdk11.0.18+10-solaris.tar.gz
381-
force: no
382-
mode: 0755
383-
checksum: sha1:4cba710351022cbfe5e8f90c919ed93e9a0292c0
384-
when:
385-
- ansible_architecture == "sun4v"
386-
- not liberica11_installed.stat.exists
387-
tags: build_tools
388-
389-
- name: Download Liberica 11.0.18+10 (x64)
390-
get_url:
391-
url: https://download.bell-sw.com/java/11.0.18+10/bellsoft-jdk11.0.18+10-solaris-x64.tar.gz
392-
dest: /tmp/bellsoft-jdk11.0.18+10-solaris.tar.gz
393-
force: no
394-
mode: 0755
395-
checksum: sha1:e93ae23bff63e108ebafb16065d5b408a3ce6f22
396-
when:
397-
- ansible_architecture == "i386"
398-
- not liberica11_installed.stat.exists
399-
tags: build_tools
400-
401-
- name: Creating /usr/lib/jvm/bell-jdk-11.0.18.tmp for temporary use
402-
file:
403-
path: /usr/lib/jvm/bell-jdk-11.0.18.tmp
404-
state: directory
405-
owner: root
406-
mode: 0755
407-
when:
408-
- not liberica11_installed.stat.exists
409-
tags: build_tools
410372

411-
- name: Decompress Liberica 11
412-
unarchive:
413-
src: /tmp/bellsoft-jdk11.0.18+10-solaris.tar.gz
414-
dest: /usr/lib/jvm/bell-jdk-11.0.18.tmp
415-
remote_src: yes
416-
when:
417-
- not liberica11_installed.stat.exists
418-
tags: build_tools
419-
420-
- name: Remove top level of directory
421-
command: mv /usr/lib/jvm/bell-jdk-11.0.18.tmp/jdk-11.0.18 /usr/lib/jvm/bell-jdk-11.0.18
422-
args:
423-
removes: /usr/lib/jvm/bell-jdk-11.0.18.tmp/jdk-11.0.18
424-
creates: /usr/lib/jvm/bell-jdk-11.0.18/bin/java
425-
when:
426-
- not liberica11_installed.stat.exists
427-
tags: build_tools
428-
429-
- name: Clear temp directory
430-
file:
431-
path: /usr/lib/jvm/bell-jdk-11.0.18.tmp
432-
state: absent
433-
when:
434-
- not liberica11_installed.stat.exists
435-
tags: build_tools
436-
437-
- name: Create symlink to point at Liberica 11
438-
file:
439-
src: /usr/lib/jvm/bell-jdk-11.0.18
440-
dest: /usr/lib/jvm/jdk-11
441-
state: link
442-
when:
443-
- not liberica11_installed.stat.exists
444-
tags: build_tools
445-
446-
- name: Check for /usr/lib/jvm/fallocate.so
447-
stat:
448-
path: /usr/lib/jvm/fallocate.so
449-
register: fallocate_installed
450-
451-
- name: Copy fallocate.so into place for JDK11
452-
copy:
453-
src: files/{{ ansible_architecture }}/fallocate.so
454-
dest: /usr/lib/jvm/fallocate.so
455-
when:
456-
- not fallocate_installed.stat.exists
457-
tags: build_tools
373+
# Liberica 11 install with a custom patch to make it work on Solaris 11
374+
# used to be here for jenkins until they moved to requiring java 17
375+
# Certificate check on the 11 download no longer works so it has been
376+
# removed under https://github.com/adoptium/infrastructure/pull/4156

0 commit comments

Comments
 (0)