在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配合使用。关于为什么失败的任何提示?
答案 0 :(得分:0)
这是代理设置。我必须将最重要的实例添加到“无代理”设置中。