问题:通过Postman访问 Jenkins api时出现访问权限问题

<html>
    <head>
        <meta http-equiv='refresh' content='1;url=/jenkins/login?from=%2Fjenkins%2Fapi%2Fjson'/>
        <script>window.location.replace('/jenkins/login?from=%2Fjenkins%2Fapi%2Fjson');</script>
    </head>
    <body style='background-color:white; color:white;'>


Authentication required

        <!--
You are authenticated as: anonymous
Groups that you are in:
 
Permission you need to have (but didn't): hudson.model.Hudson.Read
 ... which is implied by: hudson.security.Permission.GenericRead
 ... which is implied by: hudson.model.Hudson.Administer
-->


    </body>
</html>

解决方法:Jenkins 系统设置中设置未授权用户可以读访问。

postman 访问 jenkins api 接口异常及处理postman 访问 jenkins api 接口异常及处理

postman 访问 jenkins api 接口异常及处理

 

 然后Apply后,再次通过Postman访问可以正常访问

 

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-11-23
  • 2021-07-13
  • 2022-01-20
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案