Change By: stevengbrown (29/Sep/12 3:54 PM)
Description: Instead of relying on The Timestamper plugin currently inserts a  console  notes, store  note into every line of  the  timestamps in a more compact and human-readable format  build's log file .

The
 [ console Console  notes|http://javadoc.jenkins-ci.org/byShortName/ConsoleNote] are a feature supported by Jenkins. They allow the timestamps to be formatted at the time the console is viewed, rather than the time that the build was running. Any alternative solution also needs to support formatting at view time.

Inserting a console note into every line, as the Timestamper plugin does, has several disadvantages:
- They increase the file size of the log.
- They make the log file more difficult to read in a text editor.
- External scripts may need to skip over the console notes when reading the log file. (Jenkins itself and the Jenkins plugins already need to deal with console notes, so they are not as much of a concern.)
- They make it difficult to read the times with a script, e.g. to determine which parts of the build are the slowest.

It would be nice to store the timestamps
 as  in a separate file to  the  number of elapsed milliseconds since the build started  console, and in a more efficient format . The Timestamper plugin would  still  need  a way  to  replace  insert  these timestamps  when Jenkins displays  back into  the console  log. This may require changes to  when it is being viewed in  Jenkins  core .

Backwards compatibility:
* The Timestamper plugin should to retain the ability to display existing console notes.
* There should be an option to still use console notes, because a few people have written scripts to read them from the log file.

* The /timestamps URL (introduced in version 1.3.2) must continue to read the console notes when this option has been selected.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to