groovy - How to add new line to description in Jenkins -


how add new line description in jenkins, when change programmatically?

i have tried this:

job.builds[0].description = "hello" << '\n' << "world" 

and console scripts prints well:

hello

world

but in description on jenkins, job has "hello world" without newline beetwen hello , world

is there way this?

ok, found answer.

description raw html.

to create new line, must write:

job.builds[0].description = "hello<br> world" 

console print hello<br> world, in description newline.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -