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
• 17,060 points
1,827 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
• 45,780 points

Related Questions In Jenkins

+2 votes
5 answers
0 votes
2 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 in Jenkins by Sirajul
• 40,980 points
364 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 in Jenkins by Sirajul
• 40,980 points
1,343 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 in Jenkins by Sirajul
• 40,980 points
253 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
242 views
0 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
• 45,780 points
485 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
9,010 views