配置jenkins安全账号和项目权限

##安装插件 依赖插件:Role-based Authorization Strategy安装重启jenkins即可

##配置jenkins安全账号 1、修改前的配置: image_1bmrer02lnno1ihm1u2167tcq613.png-153.5kB 2、禁用匿名用户,禁掉用户注册,修改授权策略 image_1c301rmuqv0lqfa1posmcp15aj2r.png-49.3kB 3、系统管理-->用户管理-新增用户 image_1c3003phnik61cpd19i3ek3908p.png-53.3kB QQ图片20180104153035.png-45.3kB image_1c3004b9qtdstjte0qlu5190k16.png-28.7kB image_1c300osrr19fk12k717d9o981mkf29.png-24.1kB 4、指定用户权限 新增用户是没有任何权限的,也无法登录jenkins,需要指定权限

image_1c302007ev6d1v5di8o11211t3n38.png-38.6kB image_1c302ll951gtp1mr2fj1eic7ei4b.png-92.8kB image_1c302kalp1j87ics10bfkiv1i6r3u.png-51.3kB 主要的几个权限说明: image_1c303a8h813ps4bb1pb1o761hfe4o.png-42.6kB

配置按项目划分权限

image_1cf78mrba1s7e9ku3hdrvlosq9.png-48.3kB 保存之后: image_1cf78oabt1u8hcavtao12b41htd16.png-72kB image_1cf78ppdvm52v1n10g35v41ftt2j.png-49.5kB 1: image_1cf79078v15j32s9151u1aeg1830.png-68.6kB 2: image_1cf792u4o40e1k5j1qe11dm51rb23d.png-55.3kB 验证权限ok image_1cf794l0s1ell1m8f14eev581rlq3q.png-52.9kB