Commit 9a356610 by Ben Patterson

Use Oracle Java 8 on Jenkins workers.

parent 2c2ee6d8
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
dependencies: dependencies:
- common - common
- jscover - jscover
- role: oraclejdk
oraclejdk_version: "8u60"
oraclejdk_base: "jdk1.8.0_60"
oraclejdk_build: "b27"
oraclejdk_link: "/usr/lib/jvm/java-8-oracle"
# dependencies for edx-app jenkins worker: # dependencies for edx-app jenkins worker:
- role: edxapp_common - role: edxapp_common
when: platform_worker is defined when: platform_worker is defined
......
---
- name: Install Java
apt: pkg=openjdk-7-jre-headless state=present
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
- include: packer.yml - include: packer.yml
- include: system.yml - include: system.yml
- include: python.yml - include: python.yml
- include: java.yml
# only platform workers # only platform workers
- include: ruby.yml - include: ruby.yml
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
requirements={{ jenkins_home }}/shallow-clone/requirements/edx/{{ item }} requirements={{ jenkins_home }}/shallow-clone/requirements/edx/{{ item }}
extra_args="--exists-action=w" extra_args="--exists-action=w"
virtualenv={{ jenkins_home }}/edx-venv virtualenv={{ jenkins_home }}/edx-venv
virtualenv_command=virtualenv-2.7 virtualenv_command=virtualenv
executable=pip executable=pip
with_items: with_items:
- pre.txt - pre.txt
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
requirements={{ jenkins_home }}/shallow-clone/requirements/edx/{{ item }} requirements={{ jenkins_home }}/shallow-clone/requirements/edx/{{ item }}
extra_args="--exists-action=w" extra_args="--exists-action=w"
virtualenv={{ jenkins_home }}/edx-venv virtualenv={{ jenkins_home }}/edx-venv
virtualenv_command=virtualenv-2.7 virtualenv_command=virtualenv
executable=pip executable=pip
with_items: with_items:
- post.txt - post.txt
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
### Tests ### ### Tests ###
- name: Verify java cmd is using v 1.7 - name: Verify java cmd is using v 1.8
shell: java -version shell: java -version
register: java_version register: java_version
- assert: - assert:
that: that:
- "'1.7.0' in java_version.stderr" - "'1.8.0' in java_version.stderr"
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
creates=/usr/lib/jvm/{{ oraclejdk_base }} creates=/usr/lib/jvm/{{ oraclejdk_base }}
- name: create symlink expected by elasticsearch - name: create symlink expected by elasticsearch
file: src=/usr/lib/jvm/{{ oraclejdk_base }} dest={{ oraclejdk_link }} state=link file: src=/usr/lib/jvm/{{ oraclejdk_base }} dest={{ oraclejdk_link }} state=link force=yes
- name: update alternatives java - name: update alternatives java
alternatives: > alternatives: >
......
...@@ -10,14 +10,11 @@ ...@@ -10,14 +10,11 @@
## ##
# Role includes for role sitespeedio # Role includes for role sitespeedio
# #
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
dependencies: dependencies:
- oraclejdk - role: oraclejdk
oraclejdk_version: "8u60"
oraclejdk_base: "jdk1.8.0_60"
oraclejdk_build: "b27"
oraclejdk_link: "/usr/lib/jvm/java-8-oracle"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment