summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-08-11 00:27:35 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-08-11 11:38:54 +0000
commita26b4da9ab0a960228bbfe963a0805f3ef9d8deb (patch)
treebcbba8fabf47fcc4a55a48980d494cece68a0665 /per-service
parent40384a76d99f95d56c2e2d1477da7b8c415f34f7 (diff)
downloadansible-playbooks-a26b4da9ab0a960228bbfe963a0805f3ef9d8deb.tar.gz
jenkins: Install OpenJDK 8 from PPA (for Ubuntu 14.04).
To accommodate Yet Another Docker plugin requirements and at the same time trying to affect PermGen leak issue (by OpenJDK 8 not having PermGen and instead using normal heap to store classes, etc.): http://javaeesupportpatterns.blogspot.com.tr/2013/02/java-8-from-permgen-to-metaspace.html When upgrading to Ubuntu 16.04, PPA should be removed, as 16.04 has OpenJDK 8 as a system default. Change-Id: Ibf5613e4ff3b73c6dd3391a1783f41b78b8b4217 Reviewed-on: https://review.linaro.org/13688 Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/jenkins/roles/jenkins/tasks/jenkins-pkgs.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/per-service/jenkins/roles/jenkins/tasks/jenkins-pkgs.yml b/per-service/jenkins/roles/jenkins/tasks/jenkins-pkgs.yml
index 5ee4561..1b7641f 100644
--- a/per-service/jenkins/roles/jenkins/tasks/jenkins-pkgs.yml
+++ b/per-service/jenkins/roles/jenkins/tasks/jenkins-pkgs.yml
@@ -7,6 +7,18 @@
- pkg
- jenkins-install
+- name: Add OpenJDK PPA (remove after upgrade to 16.04)
+ apt_repository: repo="ppa:openjdk-r/ppa" update_cache=yes
+ tags:
+ - pkg
+ - jenkins-install
+
+- name: Install OpenJDK 8 (for yet-another-docker plugin)
+ apt: pkg=openjdk-8-jre
+ tags:
+ - pkg
+ - jenkins-install
+
- name: Download Jenkins {{jenkins_version}} LTS package
get_url: url=http://pkg.jenkins-ci.org/debian-stable/binary/jenkins_{{jenkins_version}}_all.deb
dest=/tmp/jenkins_{{jenkins_version}}_all.deb