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.5.11
Apr 09, 2014
1.520
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Steven Brown (id: stevengbrown)
Usage Installations 2013-Apr 3791
2013-May 3966
2013-Jun 4147
2013-Jul 4537
2013-Aug 4660
2013-Sep 4864
2013-Oct 5218
2013-Nov 5355
2013-Dec 5431
2014-Jan 5837
2014-Feb 6039
2014-Mar 6559

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.

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.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