Jenkins-将图表添加到工作界面 [英] Jenkins - add chart to the job interface

查看:191
本文介绍了Jenkins-将图表添加到工作界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将pdepend图表添加到Jenkins作业界面(在项目标题下)?真的有可能这样做吗?

How can I add the pdepend chart to the Jenkins job interface (under the project's title)? Is it actually possible to do so?

推荐答案

是的. Jenkins描述允许添加图像.

Yes it is. The Jenkins description allows for images to be added.

前段时间,您可以使用embed,但是在添加XSS保护时将其删除,但是:

Some time ago you could use embed but that was removed when XSS protection was added but:

假设图表位于build/pdepend/*下,请在说明中粘贴以下两行:

Assuming your charts are under build/pdepend/* paste the following two lines in the description:

<img type="image/svg+xml" height="300" src="ws/build/pdepend/overview-pyramid.svg" width="500"></img>
<img type="image/svg+xml" height="300" src="ws/build/pdepend/dependencies.svg" width="500"></img>

通过使用相对路径,如果您重命名项目或移动服务器,则无需更改路径.

By using a relative path you don't need to change the path if you rename the project or move the server.

这篇关于Jenkins-将图表添加到工作界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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