如何在Hudson/Jenkins构建输出控制台中显示超链接 [英] How to display a hyperlink in hudson/jenkins build output console
问题描述
如何在哈德森/
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'
在 Build 步骤中执行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屋!