Timestamper

Skip to end of metadata
Go to start of metadata

Adds timestamps to the Console Output.

Plugin Information

Plugin ID timestamper Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.6 (archives)
Mar 11, 2015
1.520
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Steven Brown (id: stevengbrown)
Usage Installations 2014-Mar 6559
2014-Apr 6696
2014-May 6856
2014-Jun 7128
2014-Jul 7513
2014-Aug 7672
2014-Sep 8101
2014-Oct 8493
2014-Nov 8525
2014-Dec 8531
2015-Jan 9013
2015-Feb 9169

Compatible with Java 6 and above.

Instructions

Enable timestamps within the "Build Environment" section of the build's configuration page.

To enable timestamps for multiple builds at once, use the Configuration Slicing Plugin version 1.32 or later.

Example output:

21:51:15  Started by user anonymous
21:51:15  Building on master
21:51:17  Finished: SUCCESS

Customization

  • The timestamp format can be configured via the Configure System page.
  • There is a panel on the left-hand side of the console page which allows either the system clock time or the elapsed time to be displayed.
  • The time zone used to display the timestamps can be configured by setting a system parameter as described here: Change time zone.

Scripting

Scripts can read the timestamps from the /timestamps URL of each build.

Each line contains the elapsed time in seconds since the start of the build for the equivalent line in the console log.

By default, the elapsed time will include exactly three places after the decimal point. This can be configured by the "precision" query parameter. Examples:

  • /timestamps?precision=seconds
  • /timestamps?precision=milliseconds
  • /timestamps?precision=1

Reading the timestamps directly from the file system is not recommended, because the format may change.

Release History

New releases may take a few hours to appear in the update center.

1.6 Mar 11, 2015
  • Add an option to use the browser's time zone. (pull request #11)
    Contributed by michael1010
  • Japanese translations. (pull request #12)
    Contributed by Pei-Tang Huang
1.5.16 Feb 25, 2015
  • Allow clicking on the text labels next to the radio buttons. (JENKINS-27054)
    Contributed by Paul Fee
1.5.15 Dec 24, 2014
  • Fix encoding problem with the German translation of the plugin description. (JENKINS-26206)
1.5.14 Jul 30, 2014
  • Reduce size of the X-ConsoleAnnotator HTTP header. (JENKINS-23867)
    The header size may have caused problems depending on how your web container is configured.
1.5.13 Jul 23, 2014
1.5.12 Jun 07, 2014
  • Allow the time zone for the timestamps to be configured. (JENKINS-22586)
1.5.11 Apr 09, 2014
1.5.10 Apr 09, 2014  
1.5.9 Mar 10, 2014
1.5.8 Jan 02, 2014
  • Implemented a work-around for servers that do not reliably report the elapsed time. (JENKINS-19778)
  • Support for gzipped build logs.
  • Requires Java 6 or later.
  • Requires Jenkins 1.520.
1.5.7 Aug 21, 2013
  • Fix minor incompatibility with Publish Over SSH Plugin. (JENKINS-19193)
1.5.6 Jul 25, 2013
  • Update the DurationFormatUtils URL in the help messages. (pull request #4)
    Contributed by Bananeweizen
1.5.5 Jul 24, 2013
  • Display timestamps correctly when viewing the truncated console log. (JENKINS-17779)
    Contributed by Kohsuke Kawaguchi
1.5.4 Jun 04, 2013
  • Prevent another NPE being thrown when the slave is taken offline during a build. (JENKINS-16778) (pull request #3)
    Contributed by jdewinne
1.5.3 Mar 17, 2013
  • Traditional Chinese translations. (pull request #2)
    Contributed by Pei-Tang Huang
  • Workaround a bug in Jenkins which causes a VM crash. (JENKINS-16528)
  • Prevent an NPE being thrown when the slave is taken offline during a build. (JENKINS-16778)
1.5.2 Feb 03, 2013
1.5.1 Jan 22, 2013
1.5 Jan 05, 2013
  • Can choose to display either the system clock time, the elapsed time since the build started, or no timestamps at all. (JENKINS-14931)
  • The elapsed time format can be configured.
1.4 Dec 27, 2012
  • The timestamp data now requires less disk space and does not clutter the build log file. (JENKINS-14932)
    Upgrade warning:
    If you use a script to read the timestamp data directly from the build log file, you will need to either:
    (a) Modify the script to read from the /timestamps URL instead (recommended) OR
    (b) Provide the -Dtimestamper-consolenotes=true VM argument when starting Jenkins.
          This will cause the plugin to store the timestamp data in the old format.
1.3.2 Sep 30, 2012
  • Scripts can read timestamps from the /timestamps URL of each build.
  • Requires Jenkins 1.461.
1.3.1 Sep 08, 2012
  • Can configure an empty timestamp format.
1.3 Aug 26, 2012
  • The timestamp format is configurable. (pull request #1)
    Contributed by Frederik Fromm
  • Requires Jenkins 1.450.
1.2.2 Feb 07, 2011
  • Built from github repository with new Jenkins infrastructure. No behavioural changes.
1.2.1 Sep 07, 2010
  • Timestamps no longer interfere with the Ant target highlighting.
1.2 Aug 29, 2010
  • More robust implementation; prevents errors that could arise for some build configurations. (JENKINS-7112)
  • Requires Jenkins 1.374.
1.1 Aug 01, 2010
1.0 Jul 31, 2010
  • Initial release.
  • Requires Jenkins 1.349.

Labels

Edit
plugin-buildwrapper plugin-buildwrapper Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment