Skip to content

Commit 67132f9

Browse files
authored
Update Jenkins-redhat8-install28.sh
1 parent 7a488ea commit 67132f9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

JENKINS-INSTALLATION/Jenkins-redhat8-install28.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# CREATE HOSTNAME
2-
sudo hostname auto
1+
#!/bin/bash
2+
# Author: Prof Legah
3+
# date: sep/12/2022
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+
sudo timedatectl set-timezone America/New_York
7+
sudo hostnamectl set-hostname jenkins
38
sudo yum install wget -y
49
sudo wget -O /etc/yum.repos.d/jenkins.repo \
510
https://pkg.jenkins.io/redhat-stable/jenkins.repo
@@ -18,3 +23,4 @@ sudo systemctl start jenkins
1823
# You can check the status of the Jenkins service using the command:
1924
sudo systemctl status jenkins
2025
sudo su - ec2-user
26+
echo "echo of jenkins installation"

0 commit comments

Comments
 (0)