Mattermost плагин для Дженкинса не работает - PullRequest
0 голосов
/ 21 мая 2019

Использование плагина Mattermost Notification в Jenkins (работающем в 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.Любые намеки на то, почему это не удается?

1 Ответ

0 голосов
/ 22 мая 2019

Это были настройки прокси. Мне пришлось добавить мой самый важный экземпляр в настройки «без прокси».

...