Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding current date in Jenkins email

Tags:

email

jenkins

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 ?!

like image 359
dynamicJos Avatar asked Jun 04 '26 06:06

dynamicJos


1 Answers

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.

like image 174
ANIL Avatar answered Jun 07 '26 23:06

ANIL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!