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

use https instead of http while installing jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: packaging
    • Labels:
      None
    • Environment:
      latest stable
    • Similar Issues:
    • Sprint:
      Evergreen - Milestone 2

      Description

      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. 

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: