1

I opened an old ticket without answers : How to send attachments through jenkins pipeline using mail

Do you know if it's possible to send an email attachment with mail . I know that it's possible to send it with emailext but it's not installed on our Jenkins and the team doesn't want to install it.

Please let me know if it's atleast possible because if it's not, it's a good reason to pressure the IT team in charge of the Jenkins :)

Thanks in advance

dero
  • 423
  • 4
  • 10

1 Answers1

1

No you cannot send attachments with the built-in mail steps.

Its parameters are quite limited https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail

You would need email-ext for this.

e.g. How to send email with attachment in jenkinsfile (Groovy Script)?

apr_1985
  • 1,764
  • 2
  • 14
  • 27