将 CCtray 与 Jenkins 一起使用,同时启用安全性(使用 HTTPS) [英] using CCtray with Jenkins, while security enabled (using HTTPS)

查看:17
本文介绍了将 CCtray 与 Jenkins 一起使用,同时启用安全性(使用 HTTPS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Jenkins 服务器配置为仅使用 HTTPS 并启用了安全性.同样,我不喜欢任何未登录的人查看仪表板(即使它是空的).在这里,我禁用了匿名"的读取"访问权限.

I configured my Jenkins server to only use HTTPS and enabled security. As well I don't like anybody who's not logged on to see the Dashboard (even if it would be empty). Here for I disabled the 'read' access for 'anonymous'.

到目前为止,这一切都完全符合我的喜好:)

So far all this works exactly to my likings :)

但是想通过例如向远程客户端添加一些构建通知功能.使用CCtray"之类的东西我遇到了麻烦.https://<SERVER>/cc.xml 现在只对登录用户有效.我希望能够在哪里获得匿名"通知.

But wanting to add some build notification functionality to remote clients by e.g. using something like 'CCtray' I run into trouble. The access to the https://<SERVER>/cc.xml now only works for logged in users. Where I would have liked to be able to get those notifications for 'anonymous'.

可能结合这些愿望有点矛盾 - 我想?

Probably combining these wishes is kind of contradictory - I suppose?

也许有人有更好的想法可以符合我的喜好?

Maybe someone has a better idea which could match my likings?

可能还有其他可以使用的通知工具???

Possibly any other notification tool which can be used???

对于触发 sw-builds 的 Mercurial 钩子,我可以使用类似

For the Mercurial hook triggering the sw-builds I can use a construction like

curl --cacert <CERTIFICATE>https://<USER>:<PASSWORD>@<SERVER>/job/MyPROJECT/build?delay=0sec

但 CCtray 中 URL 的类似方法似乎不起作用.

But a similar approach for the URL in CCtray doesn't seem to work.

推荐答案

对于没有匿名访问的 Jenkins 服务器,可以使用 Catlight 构建通知工具.您可以提供访问令牌或用户名/密码来对您的服务器进行身份验证.

For Jenkins servers without anonymous access, you can use Catlight build notification tool. You can provide access token or username/password to authenticate to your server.

如果您有自签名 ssl 证书,请确保您将其添加到受信任的由操作系统.这样,大多数应用程序将识别它并连接到服务器而不会发出警告.

I you have a self-signed ssl certificate, make sure that you add it to trusted by OS. That way, most applications will recognize it and connect to server without warnings.

这篇关于将 CCtray 与 Jenkins 一起使用,同时启用安全性(使用 HTTPS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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