如何在 hudson/jenkins 构建输出控制台中显示超链接 [英] How to display a hyperlink in hudson/jenkins build output console

查看:68
本文介绍了如何在 hudson/jenkins 构建输出控制台中显示超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 hudson/jenkins 构建输出控制台?

How do I display a hyperlink (weblink) in hudson/jenkins build output console?

我想要实现的是,在基于特定条件的 hudson/jenkins 构建期间,我想显示一个超链接.当用户点击该链接时,它应该打开一个新的浏览器窗口并显示该页面.

What I'm trying to achieve is, during a hudson/jenkins build based on certain condition, I would like to display a hyperlink. When a user click on that link, it should open a new browser window and show the page.

有没有插件可以做到这一点?请问有什么建议吗?

Is there a plugin to do this? Any suggestions please?

推荐答案

如果输入,例如:

echo 'http://example.com'

构建步骤执行shell →命令地址将在控制台输出中被超链接,但不会与target="_blank"一起使用.但是中键点击它会在新标签页或窗口中打开它——这取决于你的浏览器偏好.

in a Build step Execute shell → Command the address will be hyperlinked in the Console Output, though not with target="_blank". But middle-clicking on it opens it in a new tab or window – depending on your browser preferences.

这篇关于如何在 hudson/jenkins 构建输出控制台中显示超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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