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

Pipeline creation: Failed to connect to repository server certificate verification failed. CAfile: none CRLfile: none

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin, github-plugin
    • None

       
      1. I build a custom Jenkins container image based on "jenkins/jenkins:2.450-jdk21"2. Adding private on-premises certificate authority certificate to java keystore using
      ```
      keytool -import -trustcacerts -file /usr/local/share/ca-certificates/OnPremises_Root_CA.crt -alias onprem-root-ca -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit -noprompt
      ```
      3. I use the above image with the jenkins helm chart version 5.1.4, then I manually try to create a pipeline and present the git url for the on-premises github enterprise server.

      4. I get an error prompt as
      ```
      Failed to connect to repository : Command "git ls-remote -h – https://github.onprem.prod/private-repo.git HEAD" returned status code 128:
      stdout:
      stderr: fatal: unable to access 'https://github.onprem.prod/private-repo.git/': server certificate verification failed. CAfile: none CRLfile: none
      ```

      ---------------------------

      How to fix this?

            Unassigned Unassigned
            superjenkins Ali
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: