Jenkins 获取用户访问矩阵
Jenkins get user access Matrix
我需要使用 Python 获取 Jenkins 用户的用户访问矩阵。什么是 REST API 的端点?
根据Jenkins REST API documentation:
Remote API can be used to do things like these:
- 从 Jenkins 检索信息以进行编程消费。
- 触发新构建
- create/copy 职位
对我来说,无法通过 REST API 访问一般的 jenkins 配置。
尝试访问 https://your_jenkins:8080/manage/api 失败:
HTTP ERROR 404
Problem accessing /manage/api. Reason:
Not Found
用户矩阵可以通过{jenkins_url}/computer/(master)/config.xml请求获取。之后你可以解析它并创建具有权限的用户列表。
我需要使用 Python 获取 Jenkins 用户的用户访问矩阵。什么是 REST API 的端点?
根据Jenkins REST API documentation:
Remote API can be used to do things like these:
- 从 Jenkins 检索信息以进行编程消费。
- 触发新构建
- create/copy 职位
对我来说,无法通过 REST API 访问一般的 jenkins 配置。
尝试访问 https://your_jenkins:8080/manage/api 失败:
HTTP ERROR 404
Problem accessing /manage/api. Reason:
Not Found
用户矩阵可以通过{jenkins_url}/computer/(master)/config.xml请求获取。之后你可以解析它并创建具有权限的用户列表。