Jenkins插件与代理

时间:2014-05-07 20:53:34

标签: proxy jenkins-plugins

我有一个Jenkins CI,配置如下:

  • 开放SUSE上的Tomcat [openSUSE 13.1(x86_64)] [Jenkins v1.532.3]
  • Java版本" 1.7.0_51" [OpenJDK运行时环境(IcedTea 2.4.4)(suse-24.13.5-x86_64)]。

我很肯定我的代理配置正确。但是当我尝试下载插件或更新Jenkins上的插件时。我收到此错误

    Git Client Plugin   
     Failure -
    hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/git-client/1.8.1/git-client.hpi
        at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:794)
        .
        .
Caused by: java.net.ProtocolException: Server redirected too many  times (20)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        .
        .
        .
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:764)
    ... 7 more
Caused by: java.net.ProtocolException: Server redirected too many  times (20)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1636)

但是我可以对实际的URL / URI进行Curl或wget来下载插件

感谢您的帮助和反馈

1 个答案:

答案 0 :(得分:0)

我不认为这仍然有意义,但是可能会对其他人有所帮助。

更改密码后,我遇到了类似的问题。我检查了不同的代理,每次都有相同的问题。现在,我再次更改了密码以使用更多标准符号,问题立即消失了。

看来,有时密码中的某些特殊字符可能会有些问题。

希望可以帮助某人。

最好的问候, 维亚切斯拉夫