Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56434

use https instead of http while installing jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • packaging
    • 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 

       

       

      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. 

       

            Unassigned Unassigned
            ggarg Gaurav Garg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: