A
A
Al2019-12-19 02:43:53
Jenkins
Al, 2019-12-19 02:43:53

How to disable certificate checking when building an assembly?

When I try to add a link to my gitlab repo (it has a self-signed fake certificate), I get an error

Failed to connect to repository : Command "git ls-remote -h -- https://my-gitlab.local/test-repo.git HEAD" returned status code 128:
stdout:
stderr: fatal: unable to access ' https: //my-gitlab.local/test-repo.git/ ': Problem with the SSL CA cert (path? access rights?)

Tried to disable certificate checking
git config --global http.sslverify false
in git Installed "skip-certificate-check"
Jenkins plugin Set "Use browser for metadata download" flag in security settings
And none of this solved the problem.
Can you tell me how to make Jenkins ignore such certificates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2019-12-19
@Sanu0074

git config --global http.sslverify false

did you run it as a jenkins user?
A better option is to add your certificate to git - https://stackoverflow.com/questions/41930608/jenki...
And the most correct one is to make a normal certificate using Letsencrypt for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question