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.