码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-08-30 22:29:07      阅读:518      评论:0      收藏:0      [点我收藏+]

标签:系统设置   app   ati   pos   span   hat   eric   post   image   

问题:通过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 系统设置中设置未授权用户可以读访问。

技术分享技术分享

技术分享

 

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

 

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

标签:系统设置   app   ati   pos   span   hat   eric   post   image   

原文地址:http://www.cnblogs.com/luckyhome168/p/7455482.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!