How to attach files to Jenkins Pipeline notification

丶灬走出姿态 提交于 2019-12-30 04:44:09

问题


I am trying in a pipeline to attach files to my notification mails.

How can I do that? An example would be nice.


回答1:


email-ext uses Ant File Syntax

As for example usage:

emailext attachmentsPattern: '**/report.html', body: 'Find attachments', subject: 'test', to: 'test@me.org'


来源:https://stackoverflow.com/questions/41422526/how-to-attach-files-to-jenkins-pipeline-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!