I am sending an email after my build in jenkins job and I am using HTML for construction of email content, now I want to be able to add - current date in 'DEFAULT CONTENT' i.e Email content and also into the 'Subject' line of the email.
However In case of 'DEFAULT CONTENT' - without using Javascript I am unable to find a way.
and I have no idea how can I achieve this in 'Subject' line of the email.
Any help ?!
You can use Build Timestamp Plugin to retrieve the build timestamp and export it to an environment variable and then you can use the variable in your e-mail subject line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With