If you want markup to be treated as such, you must enable it: Jenkins Management> Global Security> Markup Format = HTML Safe
Then, for Jenkins script pipelines, you can simply set the currentBuild.description property with some HTML. Example:
currentBuild.description = "Click <a href='http://yourlink'>here</a>"
HTML rendering will appear in the build history and on the build page.
UPDATE: if you do not see “Safe HTML” in the “Markup markup format” drop-down list, you probably need to install the OWASP markup markup format plugin.
Adam bennett
source share