-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
latest stable
-
-
Evergreen - Milestone 2
when i try to install jenkins using ansible on my cent-os machine using yum command its taking so much time to install jenkins and its failing because of timeout
steps to reproduce:
when you download jenkins using following method then you will get /etc/yum.repos.d/jenkins.repo file
- name: Download jenkins repository
get_url:
url: http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
dest: /etc/yum.repos.d/jenkins.repo
inside /etc/yum.repos.d/jenkins.repo file i see following content:
[jenkins]
name=Jenkins-stable
baseurl=http://pkg.jenkins.io/redhat-stable
gpgcheck=1
now when you install jenkins in centos using
$ yum install jenkins
then it will look into baseurl=http://pkg.jenkins.io/redhat-stable repo and connection is really slow here even my internet speed is fast. i see download package speed is 1-3 byte package per second.
Fix:
when you download url: http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo then in /etc/yum.repos.d/jenkins.repo file it should be https
so /etc/yum.repos.d/jenkins.repo will look like:
[jenkins]
name=Jenkins-stable
baseurl=https://pkg.jenkins.io/redhat-stable
gpgcheck=1
and you will get installation speed so fast.
i think somebody intercepting network when you use http in base url. so please change it to https.