在 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 一起工作正常。关于为什么失败的任何提示?