且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Jenkins Github身份验证错误:用户缺少总体/读取权限

更新时间:2023-02-15 16:41:41

这是我解决身份验证问题的方法:


  1. 编辑 config.xml 档案,例如

      sudo vi /var/lib/jenkins/config.xml 




    1. useSecurity 元素的值更改为 false ,例如

       < useSecurity&GT假LT; / useSecurity> 


    2. 删除 authorizationStrategy


    3. 重新启动Jenkins: /etc/init.d/jenkins restart $ c
      $ b

    4. 通过URL像往常一样访问Jenkins并重新配置安全。


    I'm using the github oauth plugin for our logins but for all of our users in the Organisation I get an error:

    Access Denied
    
    <user> is missing the Overall/Read permission
    

    I have tried everything I can possibly think of to try to make this work and I'm probably going to fallback to making everyone an admin user, which i would prefer not to do.

    Any advise would be appreciated.

    This is how I resolved the authentication problem:

    1. Edit config.xml file, e.g.

      sudo vi /var/lib/jenkins/config.xml
      

      1. Change useSecurity element's value to false, e.g.

        <useSecurity>false</useSecurity>
        

      2. Remove authorizationStrategy block

    2. Restart Jenkins: /etc/init.d/jenkins restart.

    3. Access Jenkins through URL as usual and reconfigure security again.