Pipeline: Can I use html in currentBuild.description?

175 views
Skip to first unread message

Greg Smith

unread,
Aug 15, 2016, 4:58:08 PM8/15/16
to Jenkins Users

Hi,

Is there some simple way to allow html in currentBuild.description? 

Seems like when I write any html tags in that string, they are all automatically escaped.  I can see where it would be important to do this by default for security purposes -- but as we have control over our github instance, I would like to be able to allow it.

I want to create some basic links in the description to the deep artifacts that are being archived on the build.

Cheers,
Greg

Jonathan Hodgson

unread,
Aug 16, 2016, 5:53:16 AM8/16/16
to Jenkins Users
Use the Pegdown formatter plugin, Markdown allows for HTML tags.

I've even got javascript working quite happily in the description, so things update as certain artifacts are created.
Message has been deleted

Greg Smith

unread,
Aug 16, 2016, 11:39:13 AM8/16/16
to Jenkins Users
Thanks!  Just what I needed
Reply all
Reply to author
Forward
0 new messages