File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash -eux
22
33# JDK and JRE are required for Jenkins
4- apt-get install -y openjdk-7-jre openjdk-7-jdk unzip dos2unix
4+ apt-get install -y software-properties-common # Installs add-apt-repository in 14.04
5+ add-apt-repository ppa:openjdk-r/ppa
6+ apt-get update
7+ apt-get install -y \
8+ openjdk-8-jre \
9+ openjdk-8-jre-headless \
10+ openjdk-8-jdk \
11+ dos2unix \
12+ zip \
13+ unzip
514
615wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
716echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list
@@ -31,4 +40,4 @@ tar zxvf /tmp/jenkins-config/example-job.tar.gz
3140chown -R jenkins:jenkins /var/lib/jenkins
3241
3342# restart for jenkins to pick up the new configs
34- service jenkins restart
43+ service jenkins restart
You can’t perform that action at this time.
0 commit comments