0

在 Jenkins 上使用 Mattermost Notification 插件(在 macOS 上运行)给我以下错误:

Error posting to Mattermost
java.io.IOException: Stream closed
    at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
    at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:177)
    at java.io.FilterInputStream.read(FilterInputStream.java:133)
    at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:115)
    at java.io.FilterInputStream.read(FilterInputStream.java:107)
    at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:134)
    at org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodBase.java:697)
    at org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(HttpMethodBase.java:810)
    at jenkins.plugins.mattermost.StandardMattermostService.publish(StandardMattermostService.java:100)
    at jenkins.plugins.mattermost.ActiveNotifier.completed(ActiveNotifier.java:116)
    at jenkins.plugins.mattermost.MattermostListener.onCompleted(MattermostListener.java:27)
    at jenkins.plugins.mattermost.MattermostListener.onCompleted(MattermostListener.java:15)
    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
    at hudson.model.Run.execute(Run.java:1861)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)

按“测试连接”时出现同样的错误。端点/url 与 Curl 一起工作正常。关于为什么失败的任何提示?

4

1 回答 1

0

这是代理设置。我不得不将我最重要的实例添加到“无代理”设置中。

于 2019-05-22T18:05:36.670 回答