jenkins document

pipeline语法:https://jenkins.io/zh/doc/book/pipeline/docker/

groovy 语法:http://groovy-lang.org/syntax.html#_keywords

示例:https://www.cnblogs.com/zoujiaojiao/p/13219057.html

邮件通知语法:https://www.jenkins.io/zh/doc/pipeline/tour/post/

发送邮件示例:https://blog.51cto.com/u_5766902/2317533

robot result template: https://github.com/vladwa/robot-email-template

robot result email template: https://gist.github.com/harbdog/070f0be66ebae343d6d11e57a6c6fc08

robot result email template: https://blog.csdn.net/ojiawang/article/details/51872481

https://plugins.jenkins.io/email-ext/

邮件中带图片:https://blog.csdn.net/ithongchou/article/details/83310676

邮件中带图片(使用用附件中的图片):https://blog.csdn.net/zishendianxia/article/details/90758077

email ext: https://www.linuxea.com/1767.html#4%EF%BC%8Cpipeline%E6%96%87%E4%BB%B6%E6%B5%8B%E8%AF%95

 

def graph_url = String.format("%s%srobot/graph?zoomSignificant=true&hd=true&failedOnly=false&criticalOnly=false&maxBuildsToShow=0",rooturl, build.url)
def save_graph_png_cmd = String.format('curl -s -o /tmp/graph.png %s', graph_url)
save_graph_png_cmd.execute()
sleep(900)
def graph_png = "base64 /tmp/graph.png".execute().text

<img src="data:image/jpg;base64, ${graph_png}" >

 

posted @ 2019-08-15 07:51  i舒  阅读(194)  评论(0编辑  收藏  举报