Jenkins- Build Date in Jenkins Email

542 views
Skip to first unread message

Rajasekar Vasudevan

unread,
Aug 13, 2015, 2:09:20 PM8/13/15
to Jenkins Users
I have Jenkin’s “BUILD_ID” env variable redefined using zentimestamp plugin in my Jenkins setup and I use it in the configured jobs for various reasons. I’m now trying to display the build date in the format “YYYY-MM-DD” in emails triggered by email extn plugin as part of post build. Can anyone direct me how can I display the build date in the above format in emails. I could not use none other Jenkins env variables. Please share your thoughts to get this done or put me in some directions. Thanks.

Slide

unread,
Aug 13, 2015, 2:13:42 PM8/13/15
to Jenkins Users
Is your override of BUILD_ID not working? 

On Thu, Aug 13, 2015 at 11:09 AM Rajasekar Vasudevan <rajase...@gmail.com> wrote:
I have Jenkin’s “BUILD_ID” env variable redefined using zentimestamp plugin in my Jenkins setup and I use it in the configured jobs for various reasons. I’m now trying to display the build date in the format “YYYY-MM-DD” in emails triggered by email extn plugin as part of post build. Can anyone direct me how can I display the build date in the above format in emails. I could not use none other Jenkins env variables. Please share your thoughts to get this done or put me in some directions. Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ab262fed-1078-4de4-bfdc-95bc92010719%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rajasekar Vasudevan

unread,
Aug 13, 2015, 2:17:19 PM8/13/15
to Jenkins Users

No...It's working as expected. But it's set to a different format and i use it for various other reasons in the job. So i could not use BUILD_ID to just display the date in format YYYY_MM_DD.

Slide

unread,
Aug 13, 2015, 2:22:05 PM8/13/15
to Jenkins Users
Are you using groovy templates or jelly templates for your email, or just raw tokens in the content box?

Rajasekar Vasudevan

unread,
Aug 13, 2015, 2:26:29 PM8/13/15
to Jenkins Users
I do not use groovy templates or jelly templates. It's just a simple plain email wherein i wanted display the date in the format YYYY-MM-DD

Slide

unread,
Aug 13, 2015, 3:36:57 PM8/13/15
to Jenkins Users
There is no token that provides that.

Reply all
Reply to author
Forward
0 new messages