301从Slack运行Jenkins Build时永久移动

时间:2015-08-12 08:08:59

标签: nginx jenkins slack-api

this教程之后,我想在Slack中包含一个斜杠命令,它将远程触发Jenkins build.My Jenkins服务器使用ngnix作为反向代理。

因此,命令curl在使用curl或我的浏览器运行时会触发构建。 HTTP/1.1 200 OK Server: nginx/1.4.6 (Ubuntu) Date: Wed, 12 Aug 2015 08:51:41 GMT Content-Type: text/html;charset=ISO-8859-1 Content-Length: 11 Connection: keep-alive X-Content-Type-Options: nosniff 输出

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html> 

但是当它通过Slack触发时,会给出以下输出。我在集成斜杠命令时嵌入了相同的URL。

{{1}}

我很擅长懒散,任何帮助都会受到赞赏。

1 个答案:

答案 0 :(得分:2)

如果不知道您将重定向到哪里,则很难判断这是正常还是不良行为。

您是否被重定向到登录页面,例如?

您是否已检查反向代理访问日志,Slack命令调用哪些URL 实际

相关问题