jenkins but returned HTTP 403

Hook executed successfully but returned HTTP 403 Error 403 No valid crumb was included in the request

HTTP ERROR 403

Problem accessing /job/eureka-service/build. Reason:

 No valid crumb was included in the request


Powered by Jetty:// 9.4.z-SNAPSHOT

原因:由于Jenkins的安全策略配置了CSRF跨站点保护。

进入Jenkins,系统管理-->全局安全配置,勾选匿名用户具有可读权限和去掉CSRF防止跨站点请求伪造:

 授权策略->任何用户可以做任何事(没有任何限制)

 

还需修改:

系统管理->系统设置->Gitlab 

Enable authentication for '/project' end-point

GitLab connections 去掉勾选

你可能感兴趣的:(linux总结整理,每日一记)