如何在 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'
在构建步骤执行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屋!