-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins: 2.450
OS: Linux - 5.10.223-211.872.amzn2.x86_64
Java: 21.0.2 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
git:5.4.1
git-client:5.0.0
git-parameter:0.9.19
github:1.40.0
github-api:1.321-468.v6a_9f5f2d5a_7e
github-branch-source:1797.v86fdb_4d57d43
Installed on EKS cluster using JenkinsCI helm chart version: 5.1.4Jenkins: 2.450 OS: Linux - 5.10.223-211.872.amzn2.x86_64 Java: 21.0.2 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- git:5.4.1 git-client:5.0.0 git-parameter:0.9.19 github:1.40.0 github-api:1.321-468.v6a_9f5f2d5a_7e github-branch-source:1797.v86fdb_4d57d43 Installed on EKS cluster using JenkinsCI helm chart version: 5.1.4
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?