From 5532a0987af0ac69605ae3d67aec57228288ce82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Tam=C3=A1s?= Date: Sat, 28 Oct 2017 20:17:10 +0200 Subject: [PATCH] updated jdk/jre version from 7 to 8 --- packer-templates/scripts/jenkins.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packer-templates/scripts/jenkins.sh b/packer-templates/scripts/jenkins.sh index dcc117e..33b8920 100644 --- a/packer-templates/scripts/jenkins.sh +++ b/packer-templates/scripts/jenkins.sh @@ -1,7 +1,9 @@ #!/bin/bash -eux # JDK and JRE are required for Jenkins -apt-get install -y openjdk-7-jre openjdk-7-jdk unzip dos2unix +add-apt-repository ppa:openjdk-r/ppa +apt-get update +apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add - echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list @@ -31,4 +33,4 @@ tar zxvf /tmp/jenkins-config/example-job.tar.gz chown -R jenkins:jenkins /var/lib/jenkins # restart for jenkins to pick up the new configs -service jenkins restart \ No newline at end of file +service jenkins restart