仅通过jenkins导致gnutls_handshake()失败 [英] gnutls_handshake() failure only via jenkins

查看:877
本文介绍了仅通过jenkins导致gnutls_handshake()失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须与GIT储存库(bitbucket)进行交互. 如果我通过bash尝试任何clone/push/pull命令,则效果很好.

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

无论如何,如果我尝试将克隆uri设置为詹金斯,则会得到:

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.

为什么?

推荐答案

Jenkins正在使用GnuTLS来处理与Bitbucket通信的TLS部分(即"HTTPS"中的"S").在这种情况下,某些事情使GnuTLS无法正确建立TLS会话.这里确实没有足够的信息来说明那是什么,但是您可以尝试以下几件事:

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. 将GnuTLS和/或cURL更新到新版本
  2. 使用针对OpenSSL编译的cURL客户端
  3. 使用SSH

这篇关于仅通过jenkins导致gnutls_handshake()失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆