How to attach files to Jenkins Pipeline notification

36.4k views Asked by At

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

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

1

There are 1 answers

11
hakamairi On BEST ANSWER

email-ext uses Ant File Syntax

As for example usage:

emailext attachmentsPattern: '**/report.html', body: 'Find attachments', subject: 'test', to: '[email protected]'