From 8873ec3bcb1b4150d80a841273bc3febbb220ff2 Mon Sep 17 00:00:00 2001 From: Chefouetmeka <113039728+Chefouetmeka@users.noreply.github.com> Date: Tue, 25 Apr 2023 22:59:21 +0200 Subject: [PATCH] Update install_jenkins_ec2.sh --- jenkins_ec2/install_jenkins_ec2.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jenkins_ec2/install_jenkins_ec2.sh b/jenkins_ec2/install_jenkins_ec2.sh index b6499be..267af3f 100644 --- a/jenkins_ec2/install_jenkins_ec2.sh +++ b/jenkins_ec2/install_jenkins_ec2.sh @@ -54,8 +54,12 @@ sudo yum install -y ant # Let's now install Jenkins: echo "=====> [3]: installing Jenkins ...." -sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo -sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key + + +sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo + +sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key + sudo yum install -y jenkins echo "=====> [4]: updating server after jenkins installation ...." @@ -70,4 +74,4 @@ sudo yum install -y firewalld sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp sudo firewall-cmd --reload -echo "END - install jenkins" \ No newline at end of file +echo "END - install jenkins"