Hook executed successfully but returned HTTP 403

jenkins配置gitlab的webhook,完成配置,测试结果显示 Hook executed successfully but returned HTTP 403

解决:

  进入jenkins:

Manage Jenkins- >Configure Global Security -> 授权策略 -> Logged-in users can do anything (登录用户可以做任何事情) 点选 -> 匿名用户具有可读权限 点选

2、去掉跨站点请求伪造 点选 放开

Manage Jenkins- >Configure Global Security -> CSRF Protection(跨站请求伪造保护)

 

 

3、去掉Gitlab enable authentication 点选 放开

系统管理 -> 系统设置 -> Enable authentication for '/project' end-point

 

 

posted @ 2019-07-12 10:26  路迢迢  阅读(8891)  评论(2编辑  收藏  举报