2017-04-25 270 views
0

我称之为网络挂接詹金斯从Gitlab并得到以下错误:HTTP错误400访问/ github-webhook /。勾应包含事件类型

<html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
     <title>Error 400 Hook should contain event type</title> 
    </head> 
    <body> 
     <h2>HTTP ERROR 400</h2> 
     <p>Problem accessing /github-webhook/. Reason: 

      <pre> Hook should contain event type</pre> 
     </p> 
     <hr> 
     <i> 
      <small>Powered by Jetty://</small> 
     </i> 
     <hr/> 
    </body> 
</html> 

我做了什么?我读到这里参考,但不工作:

Jenkins github plugin returns error 400 "Hook should contain event type"

为什么我再次问到类似的标题:

上述原因仍然不是为我工作的解决方案。

我可以肯定的是:

我相信詹金斯可以连接到Gitlab,因为我可以建项目“X”手动,没有错误。我的问题在这里,当我想自动构建时,我推到gitlab,我总是得到那个错误。谁能帮我 ?

回答