如何分享Jenkins BUILD Monitor [英] How to share Jenkins BUILD Monitor

查看:45
本文介绍了如何分享Jenkins BUILD Monitor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在运行一个Jenkins构建服务器,该服务器负责为我们的团队编写数十个工作. Build Monitor插件用于创建各种版本的仪表板,然后我们将其投影到办公室的电视上;电视已连接到专用计算机(chromebox),该计算机已登录到Jenkins服务器并显示插件仪表板.

We're running a Jenkins build server that is responsible for composing dozens of jobs for our team. The Build Monitor Plugin is being use to create a dashboard of various builds, and we then project this on a TV in the office; the TV is connected to a dedicated computer (chromebox) that is logged into the Jenkins server and shows the plugin dashboard.

不坐在电视旁怎么看仪表板?理想情况下,团队中任何地方的任何人都应该在不登录jenkins服务器的情况下看到Build Monitor仪表板(我们必须共享登录名).

How could I see the dashboard without sitting next to the TV? Ideally, anyone on the team from anywhere should see the Build Monitor dashboard without logging into the jenkins server (we'd have to share a login).

关于如何实现这一目标的任何想法?我能想到的最好的办法就是打开

Any ideas on how to achieve this? The best I can think of is to turn the chromebox into a remote access point it remotely, but this feels sloppy.

推荐答案

您可以使用

You can use Role Strategy Plugin to a get finer grain authorization control.

然后,您可以将匿名的读取权限限制为仅要公开的仪表板视图.并要求对其他所有内容进行身份验证.

Then you can limit Anonymous read access to just the Dashboard view you want to make public. And require authentication for everything else.

总而言之,您需要:

  • 匿名用户的项目角色
  • 项目角色将仅具有仪表板模式的阅读视图权限(.* view/your-build-monitor-name/)
  • 将此角色分配给匿名特殊用户
  • A Project Role for anonymous users
  • That Project Role will only have read views permission for the pattern of the dashboard (.*view/your-build-monitor-name/)
  • Assing this role to Anonymous special user

这篇关于如何分享Jenkins BUILD Monitor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆