Fri*_*ren 9 jenkins jenkins-plugins slack-api slack jenkins-pipeline
我正在从.bat文件运行jenkins,因为我需要一些应用程序才能执行某些服务操作,否则,从服务中无法做到.
我在Slack中安装了jenkins插件.按照说明操作,然后去配置插件.
因为我现在正在本地运行它,所以我有以下配置:
如果我单击底部的"测试连接"按钮,则会向运行jenkins的控制台发出以下错误:
[0m[33mApr 18, 2017 3:53:29 PM jenkins.plugins.slack.StandardSlackService publish
WARNING: Response Code: 403
[0m[33mApr 18, 2017 4:00:33 PM hudson.security.csrf.CrumbFilter doFilter
WARNING: No valid crumb was included in request for /gk1aDYmKI6DQ3mGsuZ1fevm5. Returning 403.
[0m[33mApr 18, 2017 4:00:33 PM jenkins.plugins.slack.StandardSlackService publish
WARNING: Slack post may have failed. Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 403 No valid crumb was included in the request</title>
</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /gk1aDYmKI6DQ3mGsuZ1fevm5. Reason:
<pre> No valid crumb was included in the request</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
[0m[33mApr 18, 2017 4:00:33 PM jenkins.plugins.slack.StandardSlackService publish
WARNING: Response Code: 403
[0m
Run Code Online (Sandbox Code Playgroud)
如果我将基本URL更改为"/",我会收到以下回复:
[0m[33mApr 18, 2017 4:26:21 PM jenkins.plugins.slack.StandardSlackService publish
WARNING: Error posting to Slack
java.lang.IllegalStateException: Target host is null
at org.apache.http.util.Asserts.notNull(Asserts.java:46)
at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:125)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(Closeabl
Run Code Online (Sandbox Code Playgroud)
我一步一步地按照说明,尝试了不同的Base URl而没有任何成功.
小智 14
处理同样的问题.所以我找到了简单的解决方法(与slack.com集成.没有检查其他系统):
执行此步骤后,您可以解决此问题
| 归档时间: |
|
| 查看次数: |
4721 次 |
| 最近记录: |