jenkinshudsonjenkins-pluginshudson-pluginsautomated-deploy

How to display a hyperlink in hudson/jenkins build output console


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

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?


Solution

  • If you enter, for example:

    echo 'http://example.com'
    

    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.