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 1
1
#! /bin/bash -eux
2
2
3
3
# 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
5
14
6
15
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
7
16
echo 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
31
40
chown -R jenkins:jenkins /var/lib/jenkins
32
41
33
42
# 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