Integración de GitLab con Jenkins: “SSL certificate problem: self signed certificate”

Al configurar la integración de GitLab con Jenkins, me ha aparecido el siguiente mensaje:

Failed to connect to repository : Command “git ls-remote -h — https://gitlab.jdomain.com/administrator/uoc_tfm.git HEAD” returned status code 128:
stdout:  stderr: fatal: unable to access ‘https://gitlab.jdomain.com/administrator/uoc_tfm.git/’: SSL certificate problem: self signed certificate

Error Jenkins Git.

Para solventar el problema he creado en: /var/lib/jenkins (JENKINS_HOME) el fichero .gitconfig con el siguiente contenido:

[root@infman01 jenkins]# cat .gitconfig_ori
[http]
sslVerify = false

Con ello ha dejado de salir el error.

Enjoy!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: