1

I have configured my jenkins pipeline to send mail like this

post { 
success {
    mail bcc: '', body: 'this is the body', cc: '', from: '', replyTo: '', subject: 'This is a test', to: 'xyz@gmail.com' 
    }   
}

Now, I would like to send an attachment along with this, but, could not able to find out any option for that. Does anyone knows how to send attachment with the above syntax. I will be thankful.

Yogesh Jilhawar
  • 5,605
  • 8
  • 44
  • 59
  • Possible duplicate of [How to attach files to Jenkins Pipeline notification](https://stackoverflow.com/questions/41422526/how-to-attach-files-to-jenkins-pipeline-notification) – tripleee Aug 23 '18 at 08:28
  • 1
    may be..but i want answer specific for `mail` not for `emailext` plugin – Yogesh Jilhawar Aug 23 '18 at 08:51
  • Hello, is there an answer for this ? I can't use the plugin 'emailext', i'm not the sysadmin of the jenkins platform – dero Jan 07 '22 at 14:07

0 Answers0