Jenkins- Build Date in Jenkins Email

0 votes

I have an env variable called “BUILD_ID” 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. 

Aug 8, 2018 in Jenkins by Hannah
• 18,520 points
9,885 views

1 answer to this question.

0 votes

Install the zentimestamp plugin. This plugin exports a BUILD_TIMESTAMP variable. You'll see the option called "change date pattern for the BUILD_TIMESTAMP (build timestamp) variable"

You can then edit the desired date pattern as yyyy-mm-dd.

Now use $BUILD_TIMESTAMP in your Email-ext plugin.

answered Nov 14, 2018 by Kalgi
• 52,350 points

Related Questions In Jenkins

+2 votes
5 answers
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
78,725 views
0 votes
2 answers

how to execute a shell script post build step in Jenkins?

You could use the Post Build Task Plugin ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
29,455 views
0 votes
1 answer

How do you configure automatic build in jenkins?

Works in Jenkins can be activated intermittently ...READ MORE

answered Aug 6, 2019 in Jenkins by Sirajul
• 59,230 points
995 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
+2 votes
1 answer
0 votes
1 answer

Jenkins - simply robocopy in Jenkins finishes marks build with failure

robocopy returns a bit map This is the ...READ MORE

answered Aug 6, 2018 in Jenkins by Kalgi
• 52,350 points
3,562 views
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
58,422 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP