File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Author: Prof Legah
3
+ # date: 25/08/2020
4
+ # Installing Jenkins on RHEL 7/8, CentOS 7/8 or Amazon Linux OS
5
+ # You can execute this script as user-data when launching your EC2 VM.
6
+ cd /opt
7
+ # 1. Install Java and other pre-requisits.
8
+ sudo yum -y install unzip wget tree git
9
+ sudo wget -c --header " Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
10
+ sudo yum install jdk-8u131-linux-x64.rpm -y
11
+ # 2. Add Jenkins Repository and key
12
+ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
13
+ sudo cd /etc/yum.repos.d/
14
+ sudo curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
15
+ # 3. Install Jenkins
16
+ sudo yum -y install jenkins
17
+ sudo systemctl start jenkins
18
+ sudo systemctl enable jenkins
19
+ sudo systemctl status jenkins
You can’t perform that action at this time.
0 commit comments