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
• 14,080 points
774 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
• 37,430 points

Related Questions In Jenkins

+2 votes
5 answers
0 votes
1 answer

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

Yes this is possible. Follow these steps. 1. ...READ MORE

answered Jun 20 in Jenkins by Arvind
• 1,650 points
57 views
0 votes
1 answer

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

When you configure your jenkins job there ...READ MORE

answered Jun 24 in Jenkins by Neel
• 1,750 points
29 views
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 6,900 points
1,379 views
+13 votes
2 answers
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
• 37,430 points
294 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
4,550 views