How to modify the mime message in editable email plugin in jenkins

后端 未结 2 1883
我在风中等你
我在风中等你 2021-01-23 07:01

i\'d like to modify the email message i send from jenkins. how can i do it? i tried to use msg variable and set the content using msg.setContent(\"this is the string i want in t

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-23 07:21

    I've just faced same task:

    msg.setContent("Test content", 'text/html') 
    

    worked for me.

    I guess possible types are 'text/html' and 'text/plain', check that you are changing the proper one.

提交回复
热议问题