jenkins 设置权限后管理员登陆提示:Access Denied admin没有Overall/Read权限

时间:2022-12-06 17:02:44

jenkins 设置权限后,管理员登陆提示:Access Denied  admin没有Overall/Read权限

jenkins 设置权限后管理员登陆提示:Access Denied  admin没有Overall/Read权限

处理办法:

window下编辑 xml 配置文件: %userprofile%\.jenkins\config.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>

jenkins 设置权限后管理员登陆提示:Access Denied  admin没有Overall/Read权限