jenkinsci / coding-webhook-plugin

Jenkins plugin for coding.net
https://plugins.jenkins.io/coding-webhook
GNU General Public License v3.0
60 stars 19 forks source link

webhook not executed successfully #1

Closed 0x5e closed 7 years ago

0x5e commented 7 years ago

I execute curl in local network:

[root@xxx ~]# curl http://127.0.0.1:8080/jenkins/coding/xxx-backend
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /jenkins/coding/xxx-backend. Reason:
<pre>    Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>

</body>
</html>

Is there anyting I need to congifure?

0x5e commented 7 years ago

But actually it works well, I found this request in jenkins log, just the http status code is wrong.

Aug 20, 2017 6:32:34 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
WebHook called with url: /jenkins/coding/xxx-backend
Aug 20, 2017 6:32:34 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
Resolved project: xxx-backend
Aug 20, 2017 6:32:34 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
Received coding webHook ping: {"zen":"Coding! 让开发更简单"}
tsl0922 commented 7 years ago

This url is not intend to be visited by human, it's designed for coding webhook, which always send http POST requests.