How to attach files to Jenkins Pipeline notification

后端 未结 1 1807
情书的邮戳
情书的邮戳 2021-01-02 10:28

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

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

1条回答
  •  清酒与你
    2021-01-02 10:51

    email-ext uses Ant File Syntax

    As for example usage:

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

    0 讨论(0)
提交回复
热议问题