1. 程式人生 > >postman 訪問 jenkins api 接口異常及處理

postman 訪問 jenkins api 接口異常及處理

mis replace imp group 用戶 .cn con 權限 --

問題:通過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 接口異常及處理