jenkins 设置权限后,管理员登陆提示:Access Denied admin没有Overall/Read权限
处理办法:
window下编辑 xml 配置文件: %userprofile%.jenkinsconfig.xml
去掉如下部分配置,重启jenkins
<useSecurity>true</useSecurity> <authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy"> <permission>hudson.model.Item.Build:build</permission> <permission>hudson.model.Item.Cancel:build</permission> <permission>hudson.model.Item.Configure:build</permission> <permission>hudson.model.Item.Create:build</permission> <permission>hudson.model.Item.Delete:build</permission> <permission>hudson.model.Item.Discover:build</permission> <permission>hudson.model.Item.Read:build</permission> <permission>hudson.model.Item.Workspace:build</permission> </authorizationStrategy> <securityRealm class="hudson.security.HudsonPrivateSecurityRealm"> <disableSignup>true</disableSignup> <enableCaptcha>false</enableCaptcha> </securityRealm>