如何将文件附加到 Jenkins 管道通知

How to attach files to Jenkins Pipeline notification

我正在尝试将文件附加到我的通知邮件中。

我该怎么做?举个例子就好了。

email-ext 使用 Ant File Syntax

例如用法:

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