Trying to get jenkins to include the readme as an attachment with a pipeline
stage('email Alex!'){
mail(
body: 'your component is released',
attachmentsPattern: '**/*.md',
from: env.DEFAULT_REPLYTO,
replyTo: env.DEFAULT_REPLYTO,
subject: 'README',
to: 'alexander.lovett@bt.com'
)
}
In this test the dir stucture is:
--currentDir
|--Project
|--README.md
I just get an email with the body and no attachment though :/ Does anyone know how to do this?