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"