gnutls_handshake() failure only via jenkins

走远了吗. 提交于 2019-12-24 08:01:10

问题


I have to interact with a GIT repository (bitbucket). If I try any clone/push/pull command via the bash it works fine.

Anyway, if I try to set my clone uri in jenkins I get:

fatal: unable to access 'https://myuser@bitbucket.org/myrepo.git/': gnutls_handshake() failed: Error in the push function.

Why?


回答1:


Jenkins is using GnuTLS to handle the TLS portion of the communication with Bitbucket (that is, the "S" in "HTTPS"). In this case, something is keeping GnuTLS from establishing the TLS session appropriately. There isn't really enough information here to say what that something is, but there are a couple things you could try:

  1. Update GnuTLS and/or cURL to a newer version
  2. Use a cURL client compiled against OpenSSL
  3. Use SSH


来源:https://stackoverflow.com/questions/47314788/gnutls-handshake-failure-only-via-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!